summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-10-08 17:08:40 +0100
committerSam Atkins <atkinssj@gmail.com>2022-10-08 18:01:52 +0100
commit2ba3229ac62a330c4755576fa26d1572322e2716 (patch)
tree3b8438479709d29ba91d3296ec8714604f73645e
parent8edde0709ab074d9b61bc8489cacc69a11a35c96 (diff)
downloadserenity-2ba3229ac62a330c4755576fa26d1572322e2716.zip
Meta: Fix install path of usb.ids
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f54ea27230..aea973c07f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,7 +244,7 @@ endif()
export_components("${CMAKE_BINARY_DIR}/components.ini")
# 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
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_INSTALL_PATH ${CMAKE_INSTALL_DATAROOTDIR}/${USB_IDS_FILE})
-if(ENABLE_USB_IDS_DOWNLOAD AND NOT EXISTS "${CMAKE_STAGING_PREFIX}/${USB_IDS_PATH}")
- download_file("${USB_IDS_URL}" "${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_INSTALL_PATH}")
endif()