diff options
author | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2022-11-20 07:47:51 +0000 |
---|---|---|
committer | ivan <ivan@13f79535-47bb-0310-9956-ffa450edef68> | 2022-11-20 07:47:51 +0000 |
commit | ff7c19d3c8b447ea6dca17d28c63a094aeee0030 (patch) | |
tree | a368fdbc0da195fd3fb1c71f1a5ce80b4bcdaa72 | |
parent | 61a4214937b106cad306a8a00d7575f7f9104e30 (diff) | |
download | libapr-ff7c19d3c8b447ea6dca17d28c63a094aeee0030.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) |