mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(CMake): Use cmake-generator-expressions for escaping quotes (#2307)
This commit is contained in:
@@ -14,7 +14,7 @@ if( UNIX )
|
||||
endif()
|
||||
|
||||
message("* Install configs to : ${CONF_DIR}")
|
||||
add_definitions(-D_CONF_DIR="\\"${CONF_DIR}\\"")
|
||||
add_definitions(-D_CONF_DIR=$<1:"${CONF_DIR}">)
|
||||
|
||||
message("")
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ FOREACH(configFile ${MODULE_CONFIG_FILE_LIST})
|
||||
get_filename_component(file_name ${configFile} NAME_WE)
|
||||
set(CONFIG_LIST ${CONFIG_LIST}${file_name},)
|
||||
ENDFOREACH()
|
||||
add_definitions(-DCONFIG_FILE_LIST="\\"${CONFIG_LIST}\\"")
|
||||
add_definitions(-DCONFIG_FILE_LIST=$<1:"${CONFIG_LIST}">)
|
||||
# end handle config file
|
||||
|
||||
CU_RUN_HOOK("AFTER_WORLDSERVER_CMAKE")
|
||||
|
||||
Reference in New Issue
Block a user