diff options
author | Ivan Zhakov <ivan@apache.org> | 2022-11-20 07:47:51 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2022-11-20 07:47:51 +0000 |
commit | 9a59558b0ace38a3b4c9dae36452b1312f74f437 (patch) | |
tree | a368fdbc0da195fd3fb1c71f1a5ce80b4bcdaa72 | |
parent | dd405176be3d2daa1d127fd8df299c809c0d06be (diff) | |
download | apr-9a59558b0ace38a3b4c9dae36452b1312f74f437.tar.gz |
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
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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) |