diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index e336232e..46496497 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -19,8 +19,8 @@ if (MSVC) endif () # Add compiler definitions for the directories -add_definitions(-DSDRPP_MODULES_LOAD_DIR=${SDRPP_MODULES_LOAD_DIR}) -add_definitions(-DSDRPP_RES_LOAD_DIR=${SDRPP_RES_LOAD_DIR}) +add_definitions(-DSDRPP_MODULES_LOAD_DIR="${SDRPP_MODULES_LOAD_DIR}") +add_definitions(-DSDRPP_RES_LOAD_DIR="${SDRPP_RES_LOAD_DIR}") # Configure backend sources if (OPT_BACKEND_GLFW) diff --git a/sdrpp_module.cmake b/sdrpp_module.cmake index d87f2e88..b7e7e438 100644 --- a/sdrpp_module.cmake +++ b/sdrpp_module.cmake @@ -7,8 +7,8 @@ if (NOT SDRPP_MODULE_COMPILER_FLAGS) endif () # Add compiler definitions for the directories -add_definitions(-DSDRPP_MODULES_LOAD_DIR=${SDRPP_MODULES_LOAD_DIR}) -add_definitions(-DSDRPP_RES_LOAD_DIR=${SDRPP_RES_LOAD_DIR}) +add_definitions(-DSDRPP_MODULES_LOAD_DIR="${SDRPP_MODULES_LOAD_DIR}") +add_definitions(-DSDRPP_RES_LOAD_DIR="${SDRPP_RES_LOAD_DIR}") # Created shared lib and link to core add_library(${PROJECT_NAME} SHARED ${SRC})