Skip to content

Commit 4b56f63

Browse files
authored
[BUILD] Enable old behavior of CMP0092 (open-telemetry#3269)
1 parent 181f1e5 commit 4b56f63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ if(POLICY CMP0091)
1919
cmake_policy(SET CMP0091 NEW)
2020
endif()
2121

22+
if(POLICY CMP0092)
23+
# https://cmake.org/cmake/help/latest/policy/CMP0092.html#policy:CMP0092 Make
24+
# sure the /W3 is not removed from CMAKE_CXX_FLAGS since CMake 3.15
25+
cmake_policy(SET CMP0092 OLD)
26+
endif()
27+
2228
# MSVC RTTI flag /GR should not be not added to CMAKE_CXX_FLAGS by default. @see
2329
# https://cmake.org/cmake/help/latest/policy/CMP0117.html
2430
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.20.0")

0 commit comments

Comments
 (0)