Skip to content

Commit 1d43744

Browse files
authored
Allow compiling with empty CMAKE_CXX_FLAGS (#408)
Without this fix it will complain about the function needing at least 6 arguments.
1 parent ffbe903 commit 1d43744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ target_compile_options(elements PRIVATE
198198

199199
if (MSVC)
200200
# Kinda silly to have to do this: https://bit.ly/2ZXjzzn
201-
STRING(REGEX REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
201+
STRING(REGEX REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
202202
endif()
203203

204204
if (APPLE)

0 commit comments

Comments
 (0)