From 0a5863f11e44f129acfcf94f4beb0dc35917e9bb Mon Sep 17 00:00:00 2001 From: liyingxin Date: Fri, 8 Jul 2022 13:01:16 +0800 Subject: [PATCH] Revert "fix error when compile tutorial on Windows" --- CMakeLists.txt | 2 +- tutorial/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c33f36..41605be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 () diff --git a/tutorial/CMakeLists.txt b/tutorial/CMakeLists.txt index 815c28e..526b905 100644 --- a/tutorial/CMakeLists.txt +++ b/tutorial/CMakeLists.txt @@ -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 ()