Merge pull request #3798 from std-any-emplace/msvc-cmake-clang-buildfix

Add an extra space after "/Z7" in CMakeLists.txt.
This commit is contained in:
Luca Boccassi 2020-01-28 22:34:58 +00:00 committed by GitHub
commit 75dfbae0d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -763,8 +763,8 @@ if(MSVC)
# Compile the static lib with debug information included
# note: we assume here that the default flags contain some /Z flag
string(REGEX REPLACE "/Z.[^:]" "/Z7" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
string(REGEX REPLACE "/Z.[^:]" "/Z7" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
string(REGEX REPLACE "/Z.[^:]" "/Z7 " CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
string(REGEX REPLACE "/Z.[^:]" "/Z7 " CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
# Optimization flags.
# http://msdn.microsoft.com/en-us/magazine/cc301698.aspx