diff options
-rw-r--r-- | extern/libmv/CMakeLists.txt | 6 | ||||
-rwxr-xr-x | extern/libmv/bundle.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/extern/libmv/CMakeLists.txt b/extern/libmv/CMakeLists.txt index 6f0d5f3d126..0349ad72000 100644 --- a/extern/libmv/CMakeLists.txt +++ b/extern/libmv/CMakeLists.txt @@ -175,9 +175,9 @@ if(WIN32) if(MSVC) set(MSVC_OFLAGS O1 O2 Ox) - foreach(FLAG ) - string(REPLACE "" "Od" CMAKE_CXX_FLAGS_RELEASE "") - string(REPLACE "" "Od" CMAKE_C_FLAGS_RELWITHDEBINFO "") + foreach(FLAG ${MSVC_OFLAGS}) + string(REPLACE "${FLAG}" "Od" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") + string(REPLACE "${FLAG}" "Od" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}") endforeach() endif() else(WIN32) diff --git a/extern/libmv/bundle.sh b/extern/libmv/bundle.sh index 690f78df387..fb336c66d61 100755 --- a/extern/libmv/bundle.sh +++ b/extern/libmv/bundle.sh @@ -183,9 +183,9 @@ IF(WIN32) IF(MSVC) set(MSVC_OFLAGS O1 O2 Ox) - foreach(FLAG ${MSVC_OFLAGS}) - string(REPLACE "${FLAG}" "Od" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") - string(REPLACE "${FLAG}" "Od" CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO}") + foreach(FLAG \${MSVC_OFLAGS}) + string(REPLACE "\${FLAG}" "Od" CMAKE_CXX_FLAGS_RELEASE "\${CMAKE_CXX_FLAGS_RELEASE}") + string(REPLACE "\${FLAG}" "Od" CMAKE_C_FLAGS_RELWITHDEBINFO "\${CMAKE_C_FLAGS_RELWITHDEBINFO}") endforeach() ENDIF(MSVC) ELSE(WIN32) |