Merge pull request #241 from flyleier/master

fix error when compile tutorial on Windows
This commit is contained in:
xiehan 2022-07-07 23:43:10 +08:00 committed by GitHub
commit e4610b2933
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}}")
#string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}") # this line will make tutorial compile error
endforeach ()
endif ()
endif ()

View File

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