]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Use the common CMake BUILD_SHARED_LIBS to build shared library or not
authorSteve Lhomme <robux4@ycbcr.xyz>
Thu, 25 May 2023 11:56:00 +0000 (13:56 +0200)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:29:45 +0000 (00:29 +0200)
commitf49793bb9e91261891853af14a4d494f5f00f7a7
tree6b7b8a2e39d2501dc234d7aca2c18ed7786e480b
parent480ba376a6b0b883215b2f413666bc14a29b770f
Use the common CMake BUILD_SHARED_LIBS to build shared library or not

https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html

Usually it's built-in but make sure we have it on by default.

We don't need to rename the windows static library when it's the only one built.
This will also allow proper usage of the pkg-config file in this case. Otherwise
there is no way to select the static library that way.
CMakeLists.txt
libarchive/CMakeLists.txt