Commit 2d418976 by WolverinDEV Committed by GitHub

Allowing to change the MSVC runtime (#921)

* 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 <761129+derekmauro@users.noreply.github.com>
parent 9fe35195
...@@ -41,6 +41,11 @@ if (POLICY CMP0077) ...@@ -41,6 +41,11 @@ if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW) cmake_policy(SET CMP0077 NEW)
endif (POLICY CMP0077) 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. # Set BUILD_TESTING to OFF by default.
# This must come before the project() and include(CTest) lines. # This must come before the project() and include(CTest) lines.
OPTION(BUILD_TESTING "Build tests" OFF) OPTION(BUILD_TESTING "Build tests" OFF)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment