diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-07-04 10:01:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-07-04 10:02:17 +0900 |
commit | 3ebeb292bad7ce7c76a030ddd74128dd0ef06c61 (patch) | |
tree | a44400dacd3886e2b7112d70daac0414981c442c /quanta | |
parent | c93f51ea6829047c5bb687d4995b6f955ed86f32 (diff) | |
download | tdewebdev-3ebeb292bad7ce7c76a030ddd74128dd0ef06c61.tar.gz tdewebdev-3ebeb292bad7ce7c76a030ddd74128dd0ef06c61.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>
(cherry picked from commit 48f8d96999dcd8c46c733b17d9d6c8b57e6f02ac)
Diffstat (limited to 'quanta')
-rw-r--r-- | quanta/src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quanta/src/CMakeLists.txt b/quanta/src/CMakeLists.txt index d6b7ae37..ff7d5d4c 100644 --- a/quanta/src/CMakeLists.txt +++ b/quanta/src/CMakeLists.txt @@ -54,7 +54,7 @@ install( FILES x-webprj.desktop DESTINATION ${MIME_INSTALL_DIR}/application ) ##### quanta (executable) ####################### -set_source_files_properties( kqapp.cpp PROPERTIES COMPILE_FLAGS -DPREFIX=\\"${CMAKE_INSTALL_PREFIX}\\" ) +set_property( SOURCE kqapp.cpp APPEND PROPERTY COMPILE_DEFINITIONS PREFIX="${CMAKE_INSTALL_PREFIX}" ) tde_add_executable( quanta AUTOMOC SOURCES |