mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Merge pull request #481 from libexpat/issue-471-cmake-support-build-shared-libs
CMake: Support variable BUILD_SHARED_LIBS (fixes #471)
This commit is contained in:
commit
31bce2cc81
2 changed files with 7 additions and 1 deletions
|
@ -70,6 +70,11 @@ if(MSVC)
|
|||
else()
|
||||
set(_EXPAT_BUILD_PKGCONFIG_DEFAULT ON)
|
||||
endif()
|
||||
if(DEFINED BUILD_SHARED_LIBS)
|
||||
set(_EXPAT_SHARED_LIBS_DEFAULT ${BUILD_SHARED_LIBS})
|
||||
else()
|
||||
set(_EXPAT_SHARED_LIBS_DEFAULT ON)
|
||||
endif()
|
||||
|
||||
#
|
||||
# Configuration
|
||||
|
@ -77,7 +82,7 @@ endif()
|
|||
option(EXPAT_BUILD_TOOLS "build the xmlwf tool for expat library" ${_EXPAT_BUILD_TOOLS_DEFAULT})
|
||||
option(EXPAT_BUILD_EXAMPLES "build the examples for expat library" ON)
|
||||
option(EXPAT_BUILD_TESTS "build the tests for expat library" ON)
|
||||
option(EXPAT_SHARED_LIBS "build a shared expat library" ON)
|
||||
option(EXPAT_SHARED_LIBS "build a shared expat library" ${_EXPAT_SHARED_LIBS_DEFAULT})
|
||||
option(EXPAT_BUILD_DOCS "build man page for xmlwf" ${_EXPAT_BUILD_DOCS_DEFAULT})
|
||||
option(EXPAT_BUILD_FUZZERS "build fuzzers for the expat library" OFF)
|
||||
option(EXPAT_BUILD_PKGCONFIG "build pkg-config file" ${_EXPAT_BUILD_PKGCONFIG_DEFAULT})
|
||||
|
|
|
@ -41,6 +41,7 @@ Release X.X.X XXX XXXXX XX XXXX
|
|||
#457 Unexpose symbol _INTERNAL_trim_to_complete_utf8_characters
|
||||
#458 #459 CMake: Support absolute paths for both CMAKE_INSTALL_LIBDIR
|
||||
and CMAKE_INSTALL_INCLUDEDIR
|
||||
#471 #481 CMake: Add support for standard variable BUILD_SHARED_LIBS
|
||||
#468 #469 xmlwf: Improve help output and the xmlwf man page
|
||||
|
||||
Special thanks to:
|
||||
|
|
Loading…
Add table
Reference in a new issue