Skip to content

Commit 5f650a1

Browse files
mappzorathre0z
authored andcommitted
CMake: Enable CMAKE_MSVC_RUNTIME_LIBRARY (MSVC)
1 parent 6c958cf commit 5f650a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ endif ()
44

55
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
66

7+
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
8+
# Enable runtime library selection via CMAKE_MSVC_RUNTIME_LIBRARY
9+
cmake_policy(SET CMP0091 NEW)
10+
endif ()
11+
712
project(Zycore VERSION 1.4.0.0 LANGUAGES C)
813

914
include(GNUInstallDirs)

0 commit comments

Comments
 (0)