mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Meta: Fix install path of usb.ids
This commit is contained in:
parent
8edde0709a
commit
2ba3229ac6
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/2ba3229ac6 Pull-request: https://github.com/SerenityOS/serenity/pull/15516 Reviewed-by: https://github.com/timschumi
1 changed files with 3 additions and 3 deletions
|
@ -244,7 +244,7 @@ endif()
|
||||||
export_components("${CMAKE_BINARY_DIR}/components.ini")
|
export_components("${CMAKE_BINARY_DIR}/components.ini")
|
||||||
|
|
||||||
# it seems like cmake cannot uncompress *.gz files... only ZIP/tar.gz.
|
# it seems like cmake cannot uncompress *.gz files... only ZIP/tar.gz.
|
||||||
# Lets download the uncompressed versions.
|
# Lets download the uncompressed versions.
|
||||||
# https://gitlab.kitware.com/cmake/cmake/-/issues/23054
|
# https://gitlab.kitware.com/cmake/cmake/-/issues/23054
|
||||||
|
|
||||||
set(PCI_IDS_FILE pci.ids)
|
set(PCI_IDS_FILE pci.ids)
|
||||||
|
@ -261,6 +261,6 @@ set(USB_IDS_URL http://www.linux-usb.org/${USB_IDS_FILE})
|
||||||
set(USB_IDS_PATH ${CMAKE_BINARY_DIR}/${USB_IDS_FILE})
|
set(USB_IDS_PATH ${CMAKE_BINARY_DIR}/${USB_IDS_FILE})
|
||||||
set(USB_IDS_INSTALL_PATH ${CMAKE_INSTALL_DATAROOTDIR}/${USB_IDS_FILE})
|
set(USB_IDS_INSTALL_PATH ${CMAKE_INSTALL_DATAROOTDIR}/${USB_IDS_FILE})
|
||||||
|
|
||||||
if(ENABLE_USB_IDS_DOWNLOAD AND NOT EXISTS "${CMAKE_STAGING_PREFIX}/${USB_IDS_PATH}")
|
if(ENABLE_USB_IDS_DOWNLOAD AND NOT EXISTS "${CMAKE_STAGING_PREFIX}/${USB_IDS_INSTALL_PATH}")
|
||||||
download_file("${USB_IDS_URL}" "${CMAKE_STAGING_PREFIX}/${USB_IDS_PATH}")
|
download_file("${USB_IDS_URL}" "${CMAKE_STAGING_PREFIX}/${USB_IDS_INSTALL_PATH}")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue