summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2024-09-07 10:23:31 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-07 12:44:33 +0300
commitd3524123a9c24610176f238002887e2034a61685 (patch)
tree5f18322f0680b80904ce8596d90051aab006a5d9 /src
parent88aa2752d994043599f9662b9fa2b629f07058c2 (diff)
cmake: enquote variable in string(REPLACE) macros
If a var is empty then the cmake reports an error: string sub-command REPLACE requires at least four arguments
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/CMakeLists.txt b/src/mir_app/CMakeLists.txt
index b9ec24be6b..fdc52ea1e6 100644
--- a/src/mir_app/CMakeLists.txt
+++ b/src/mir_app/CMakeLists.txt
@@ -5,7 +5,7 @@ else()
list(APPEND SOURCES "src/mir_app.def")
endif()
set(TARGET mir_app)
-string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+string(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake)
target_link_libraries(${TARGET} Zlib FreeImage UxTheme.lib ws2_32.lib ${PREBUILT_DIR}/mir_core.lib ${PREBUILT_DIR}/libcrypto.lib)
set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "MIR_APP_EXPORTS") \ No newline at end of file