Merge pull request #1029 from lazyhamster/master

Fixed accidental compiler flags concatenation for MSVC.
This commit is contained in:
Tatsuhiro Tsujikawa 2017-10-19 21:21:46 +09:00 committed by GitHub
commit 7601511fdf
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ endif()
foreach(_build_type "Release" "MinSizeRel" "RelWithDebInfo")
foreach(_lang C CXX)
string(TOUPPER "CMAKE_${_lang}_FLAGS_${_build_type}" _var)
string(REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" "" ${_var} "${${_var}}")
string(REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " " ${_var} "${${_var}}")
endforeach()
endforeach()