Fix #29469: Latest motion tracking not working.
[blender.git] / extern / libmv / bundle.sh
index 690f78df387ac098e106d53f0784121d5a17546d..fb336c66d610b4db49e5711fb57ab6387564c2ed 100755 (executable)
@@ -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)