Skip to content

Commit

Permalink
On the 'cmake-native-type' branch: CMake: Automatically set APR_MODUL…
Browse files Browse the repository at this point in the history
…AR_DSO=OFF

if BUILD_SHARED_LIBS=OFF.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/cmake-native-type@1920430 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 3, 2024
1 parent 94a1ba8 commit d118eb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -71,7 +73,7 @@ OPTION(APR_HAVE_IPV6 "IPv6 support" ON)
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")
Expand Down

0 comments on commit d118eb5

Please sign in to comment.