svn commit: r1920430 - /apr/apr/branches/cmake-native-type/CMakeLists.txt

[email protected]
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <[email protected]>
Author: ivan
Date: Tue Sep  3 13:27:46 2024
New Revision: 1920430

URL: http://svn.apache.org/viewvc?rev=1920430&view=rev
Log:
On the 'cmake-native-type' branch: CMake: Automatically set APR_MODULAR_DSO=OFF
if BUILD_SHARED_LIBS=OFF.

Modified:
    apr/apr/branches/cmake-native-type/CMakeLists.txt

Modified: apr/apr/branches/cmake-native-type/CMakeLists.txt
URL: http://svn.apache.org/viewvc/apr/apr/branches/cmake-native-type/CMakeLists.txt?rev=1920430&r1=1920429&r2=1920430&view=diff
==============================================================================
--- apr/apr/branches/cmake-native-type/CMakeLists.txt (original)
+++ apr/apr/branches/cmake-native-type/CMakeLists.txt Tue Sep  3 13:27:46 2024
@@ -21,6 +21,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
 
 PROJECT(APR C)
 
+INCLUDE(CMakeDependentOption)
+
 # Enable support for MSVC runtime library selection by abstraction
 # if supported by CMake.
 IF(POLICY CMP0091)
@@ -71,7 +73,7 @@ OPTION(APR_HAVE_IPV6        "IPv6 suppor
 OPTION(INSTALL_PDB          "Install .pdb files (if generated)"  ON)
 OPTION(APR_BUILD_TESTAPR    "Build the test suite"         ON)
 OPTION(BUILD_SHARED_LIBS    "Build using shared libraries" ON)
-OPTION(APR_MODULAR_DSO      "Use DSO build of modular components" ON)
+CMAKE_DEPENDENT_OPTION(APR_MODULAR_DSO "Use DSO build of modular components" ON "BUILD_SHARED_LIBS" OFF)
 OPTION(APR_POOL_DEBUG       "Turn on pools debugging"      OFF)
 
 SET(APR_INSTALL_BIN_DIR      "bin"                       CACHE STRING "Install subdirectory for binary files")
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.