diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-07-04 01:20:59 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-07-04 01:21:47 +0200 |
commit | 967cf90889abe8df9f6c262319a92a5c8a660f12 (patch) | |
tree | 404b812ddfa9e8d85e7250d344abaaba28cde4e3 /kcontrol/usbview/CMakeLists.txt | |
parent | a359fef24e132b22b7a1667f826b0fb1bddf331f (diff) | |
download | tdebase-967cf90889abe8df9f6c262319a92a5c8a660f12.tar.gz tdebase-967cf90889abe8df9f6c262319a92a5c8a660f12.zip |
cmake: Use set_property( SOURCE ... COMPILE_DEFINITIONS )
instead of set_source_files_properties( ... COMPILE_FLAGS )
to avoid the problem of double escaping quotation marks.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kcontrol/usbview/CMakeLists.txt')
-rw-r--r-- | kcontrol/usbview/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kcontrol/usbview/CMakeLists.txt b/kcontrol/usbview/CMakeLists.txt index 1584d0699..61138a72c 100644 --- a/kcontrol/usbview/CMakeLists.txt +++ b/kcontrol/usbview/CMakeLists.txt @@ -26,7 +26,7 @@ link_directories( install( FILES kcmusb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) if( WITH_USBIDS ) - set_source_files_properties( usbdb.cpp PROPERTIES COMPILE_FLAGS -DUSBIDS_FILE=\\"${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( ) |