From c1b7409de9bfd0c63c662b38b007d99dbb442d38 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 4 Jul 2018 10:09:07 +0900 Subject: 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 --- artsc/CMakeLists.txt | 4 ++-- soundserver/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/artsc/CMakeLists.txt b/artsc/CMakeLists.txt index c462250..6a5955e 100644 --- a/artsc/CMakeLists.txt +++ b/artsc/CMakeLists.txt @@ -86,7 +86,7 @@ tde_add_library( artsdsp_st SHARED DESTINATION ${LIB_INSTALL_DIR} ) -set_target_properties( artsdsp_st-shared PROPERTIES COMPILE_FLAGS -DARTSC_BACKEND=\\"${LIB_INSTALL_DIR}/libartscbackend.la\\" ) +set_property( TARGET artsdsp_st-shared APPEND PROPERTY COMPILE_DEFINITIONS ARTSC_BACKEND="${LIB_INSTALL_DIR}/libartscbackend.la" ) ##### artsc (shared lib) ######################## @@ -98,7 +98,7 @@ tde_add_library( artsc SHARED DESTINATION ${LIB_INSTALL_DIR} ) -set_target_properties( artsc-shared PROPERTIES COMPILE_FLAGS -DARTSC_BACKEND=\\"${LIB_INSTALL_DIR}/libartscbackend.la\\" ) +set_property( TARGET artsc-shared APPEND PROPERTY COMPILE_DEFINITIONS ARTSC_BACKEND="${LIB_INSTALL_DIR}/libartscbackend.la" ) ##### artscbackend (shared lib) ################# diff --git a/soundserver/CMakeLists.txt b/soundserver/CMakeLists.txt index 0f46bed..befa698 100644 --- a/soundserver/CMakeLists.txt +++ b/soundserver/CMakeLists.txt @@ -165,7 +165,7 @@ tde_add_executable( artswrapper # FIXME "artsdpath" seems inconsistent name # necessary for artswrapper SET( artsdpath ${BIN_INSTALL_DIR}/artsd ) -set_target_properties( artswrapper PROPERTIES COMPILE_FLAGS -DEXECUTE=\\"${artsdpath}\\" ) +set_property( TARGET artswrapper APPEND PROPERTY COMPILE_DEFINITIONS EXECUTE="${artsdpath}" ) ##### artsshell ################################# -- cgit v1.2.1