summaryrefslogtreecommitdiffstats
path: root/artsc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-07-04 10:09:07 +0900
committerMichele Calgaro <[email protected]>2018-07-04 10:09:31 +0900
commit1ee7912f7e9c9da142c14ebc38f3db188fe86d4e (patch)
treee34c47bbdaa55fdda7bdbcb32a4ab3246d2ed97e /artsc
parent1b0b9f6271e8819932af07651760484fcd909e14 (diff)
downloadarts-1ee7912f7e9c9da142c14ebc38f3db188fe86d4e.tar.gz
arts-1ee7912f7e9c9da142c14ebc38f3db188fe86d4e.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]> (cherry picked from commit c1b7409de9bfd0c63c662b38b007d99dbb442d38)
Diffstat (limited to 'artsc')
-rw-r--r--artsc/CMakeLists.txt4
1 files changed, 2 insertions, 2 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) #################