Skip to content

Commit

Permalink
Allowing to change the MSVC runtime (abseil#921)
Browse files Browse the repository at this point in the history
* Allowing to change the MSVC runtime with the CMake option CMAKE_MSVC_RUNTIME_LIBRARY introduced in 3.15

* Update CMakeLists.txt

Capitalize MSVC

Co-authored-by: Derek Mauro <[email protected]>
  • Loading branch information
WolverinDEV and derekmauro authored Mar 30, 2021
1 parent 9fe3519 commit 2d41897
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 @@ -41,6 +41,11 @@ if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif (POLICY CMP0077)

# Allow the user to specify the MSVC runtime
if (POLICY CMP0091)
cmake_policy(SET CMP0091 NEW)
endif (POLICY CMP0091)

# Set BUILD_TESTING to OFF by default.
# This must come before the project() and include(CTest) lines.
OPTION(BUILD_TESTING "Build tests" OFF)
Expand Down

0 comments on commit 2d41897

Please sign in to comment.