Skip to content

Commit 1d61fe6

Browse files
committed
fix(CMake): change policy before project call
1 parent 9ac0fbb commit 1d61fe6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
cmake_minimum_required(VERSION 3.15)
2222

23+
cmake_policy(SET CMP0091 NEW)
24+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
25+
2326
#-------------------------------------------------------------------------------
2427
# Project options
2528

cmake/SuperBuild.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ if(NOT CPACK_PACKAGE_VERSION)
2222
set(CPACK_PACKAGE_VERSION "master")
2323
endif()
2424

25-
cmake_policy(SET CMP0091 NEW)
26-
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
27-
2825
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
2926
message(STATUS "Setting build type to 'Release' as none was specified.")
3027
set(CMAKE_BUILD_TYPE "Release" CACHE STRING

cmake/utils.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ if(NOT BUILD_SHARED_LIBS)
5656
)
5757
endif()
5858

59-
cmake_policy(SET CMP0091 NEW)
6059
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
6160

6261
#------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)