You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by iv...@apache.org on 2022/11/20 07:47:51 UTC

svn commit: r1905416 - /apr/apr/trunk/CMakeLists.txt

Author: ivan
Date: Sun Nov 20 07:47:51 2022
New Revision: 1905416

URL: http://svn.apache.org/viewvc?rev=1905416&view=rev
Log:
CMakeLists.txt: Enable support for MSVC runtime library selection by
abstraction if supported by CMake.

Modified:
    apr/apr/trunk/CMakeLists.txt

Modified: apr/apr/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CMakeLists.txt?rev=1905416&r1=1905415&r2=1905416&view=diff
==============================================================================
--- apr/apr/trunk/CMakeLists.txt (original)
+++ apr/apr/trunk/CMakeLists.txt Sun Nov 20 07:47:51 2022
@@ -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)