Revert "fix error when compile tutorial on Windows"

This commit is contained in:
liyingxin 2022-07-08 13:01:16 +08:00 committed by GitHub
parent e4610b2933
commit 0a5863f11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ if (WIN32)
CMAKE_C_FLAGS_MINSIZEREL
)
foreach(CompilerFlag ${CompilerFlags})
#string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") # this line will make tutorial compile error
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach ()
endif ()
endif ()

View File

@ -105,7 +105,7 @@ if (WIN32)
CMAKE_C_FLAGS_MINSIZEREL
)
foreach(CompilerFlag ${CompilerFlags})
#string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") # MD is fine, or this line will make compile error
string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
endforeach ()
endif ()
endif ()