Skip to content

Commit

Permalink
Merge pull request #43 from open-telemetry/main
Browse files Browse the repository at this point in the history
CMakeLists.txt: Enable CMAKE_MSVC_RUNTIME_LIBRARY support (open-telemetry#2652)
  • Loading branch information
malkia authored Jun 6, 2024
2 parents 3c3ebe9 + 436a981 commit 5f0bd61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12")
cmake_policy(SET CMP0074 NEW)
endif()

# Prefer CMAKE_MSVC_RUNTIME_LIBRARY if possible
if(POLICY CMP0091)
cmake_policy(SET CMP0091 NEW)
endif()

project(opentelemetry-cpp)

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

0 comments on commit 5f0bd61

Please sign in to comment.