diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index 46cd5a2f..70b62449 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -14,7 +14,7 @@ add_library(ngcore ${NGCORE_LIBRARY_TYPE} version.cpp ) -string(REPLACE "|" ";" ${NG_COMPILE_FLAGS} ng_compile_flags_replace_sep) +string(REPLACE "|" ";" "${NG_COMPILE_FLAGS}" ng_compile_flags_replace_sep) target_compile_options(ngcore PUBLIC ${ng_compile_flags_replace_sep}) if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)