Skip to content

Commit 5f0bd61

Browse files
authored
Merge pull request #43 from open-telemetry/main
CMakeLists.txt: Enable CMAKE_MSVC_RUNTIME_LIBRARY support (open-telemetry#2652)
2 parents 3c3ebe9 + 436a981 commit 5f0bd61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12")
1313
cmake_policy(SET CMP0074 NEW)
1414
endif()
1515

16+
# Prefer CMAKE_MSVC_RUNTIME_LIBRARY if possible
17+
if(POLICY CMP0091)
18+
cmake_policy(SET CMP0091 NEW)
19+
endif()
20+
1621
project(opentelemetry-cpp)
1722

1823
# Mark variables as used so cmake doesn't complain about them

0 commit comments

Comments
 (0)