summaryrefslogtreecommitdiffstats
path: root/kcontrol/usbview/CMakeLists.txt
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2021-05-12 20:17:47 +0200
committerSlávek Banko <[email protected]>2021-05-18 02:12:37 +0200
commit9bdd3a0e4724a591f0cdc6dd8bdd60dc794354e4 (patch)
treee1f3c78fd2ad1f6186821bc2a97e765cc9012307 /kcontrol/usbview/CMakeLists.txt
parent865e10771879338bfdab0f0a2adb387fd3c44b50 (diff)
downloadtdebase-9bdd3a0e4724a591f0cdc6dd8bdd60dc794354e4.tar.gz
tdebase-9bdd3a0e4724a591f0cdc6dd8bdd60dc794354e4.zip
Make the option -DWITH_USBIDS more visible for packagers.
Look for installed usb.ids file, if not found, default to the one provided in source. usb.ids file has been updated to Version 2021.03.31 Signed-off-by: gregory guy <[email protected]> Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 1389e296969df0acf7f393b698a3a0f1fb572026)
Diffstat (limited to 'kcontrol/usbview/CMakeLists.txt')
-rw-r--r--kcontrol/usbview/CMakeLists.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/kcontrol/usbview/CMakeLists.txt b/kcontrol/usbview/CMakeLists.txt
index d16b0049e..485afcd58 100644
--- a/kcontrol/usbview/CMakeLists.txt
+++ b/kcontrol/usbview/CMakeLists.txt
@@ -28,11 +28,12 @@ tde_create_translated_desktop(
PO_DIR kcontrol-desktops
)
-if( WITH_USBIDS )
- set_property( SOURCE usbdb.cpp APPEND PROPERTY COMPILE_DEFINITIONS USBIDS_FILE="${WITH_USBIDS}" )
-else( )
- install( FILES usb.ids DESTINATION ${DATA_INSTALL_DIR} )
-endif( )
+if( USE_BUILTIN_USBIDS )
+ install(
+ FILES usb.ids
+ DESTINATION ${DATA_INSTALL_DIR}
+ )
+endif( USE_BUILTIN_USBIDS )
##### kcm_usb (module) ##########################