diff --git a/CMakeLists.txt b/CMakeLists.txt index 85832599599..3d22793042e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,9 @@ elseif(WIN32) string(REPLACE "/Zi" "/Z7" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") endif() set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT Embedded) + if(POLICY CMP0141) + cmake_policy(SET CMP0141 NEW) + endif() endif() endif()