diff options
author | Michele Calgaro <[email protected]> | 2018-07-04 01:20:59 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-07-04 01:22:14 +0200 |
commit | 93c1526bae5ae82d83a24b984e95fee142a47cc3 (patch) | |
tree | 3a3113be1d8e14a0d32f53a0c707bb5ce1ca70a2 /kcontrol/usbview | |
parent | 30613a47ae17d3df4ffcb17c91f939b9364846cc (diff) | |
download | tdebase-93c1526bae5ae82d83a24b984e95fee142a47cc3.tar.gz tdebase-93c1526bae5ae82d83a24b984e95fee142a47cc3.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 <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 967cf90889abe8df9f6c262319a92a5c8a660f12)
Diffstat (limited to 'kcontrol/usbview')
-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( ) |