From 9a59558b0ace38a3b4c9dae36452b1312f74f437 Mon Sep 17 00:00:00 2001 From: Ivan Zhakov Date: Sun, 20 Nov 2022 07:47:51 +0000 Subject: CMakeLists.txt: Enable support for MSVC runtime library selection by abstraction if supported by CMake. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905416 13f79535-47bb-0310-9956-ffa450edef68 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d5719ff4..8520e77ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,12 @@ PROJECT(APR C) CMAKE_MINIMUM_REQUIRED(VERSION 3.0) +# Enable support for MSVC runtime library selection by abstraction +# if supported by CMake. +IF(POLICY CMP0091) + CMAKE_POLICY(SET CMP0091 NEW) +ENDIF() + # Add simple support CMAKE_WARNING_AS_ERROR if CMake doesn't # support it. IF (CMAKE_VERSION VERSION_LESS 3.24) -- cgit v1.2.1