diff options
author | Brad King <brad.king@kitware.com> | 2023-04-25 14:34:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-25 14:35:27 (GMT) |
commit | ba5ced1be6421b3a71919f4f9e5f4a9cbf597e4b (patch) | |
tree | 9918fd23e9e3457e8d14c95111866f3d7fa60245 /Utilities | |
parent | 1e2bce305fca2f3d480c2e6b5257fa29921b148f (diff) | |
download | CMake-ba5ced1be6421b3a71919f4f9e5f4a9cbf597e4b.zip CMake-ba5ced1be6421b3a71919f4f9e5f4a9cbf597e4b.tar.gz CMake-ba5ced1be6421b3a71919f4f9e5f4a9cbf597e4b.tar.bz2 |
libarchive: Set build options the way we need for CMake
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibarchive/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt index 89b37a7..027de5c 100644 --- a/Utilities/cmlibarchive/CMakeLists.txt +++ b/Utilities/cmlibarchive/CMakeLists.txt @@ -636,10 +636,12 @@ IF(ENABLE_ZSTD) SET(ZSTD_FIND_QUIETLY TRUE) ENDIF (ZSTD_INCLUDE_DIR) + IF(0) # CMake does not let pkg-config override its search paths. IF(UNIX) FIND_PACKAGE(PkgConfig QUIET) PKG_SEARCH_MODULE(PC_ZSTD libzstd) ENDIF() + ENDIF() FIND_PATH(ZSTD_INCLUDE_DIR zstd.h HINTS ${PC_ZSTD_INCLUDEDIR} ${PC_ZSTD_INCLUDE_DIRS}) FIND_LIBRARY(ZSTD_LIBRARY NAMES zstd libzstd HINTS ${PC_ZSTD_LIBDIR} ${PC_ZSTD_LIBRARY_DIRS}) @@ -2006,6 +2008,7 @@ CHECK_CRYPTO("MD5;RMD160;SHA1;SHA256;SHA512" LIBMD) CHECK_CRYPTO_WIN("MD5;SHA1;SHA256;SHA384;SHA512") +IF(0) # CMake does not build libarchive's shared library. # Check visibility annotations SET(OLD_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fvisibility=hidden -Werror") @@ -2016,6 +2019,7 @@ IF (HAVE_VISIBILITY_ATTR) ADD_DEFINITIONS(-D__LIBARCHIVE_ENABLE_VISIBILITY) ENDIF(HAVE_VISIBILITY_ATTR) SET(CMAKE_REQUIRED_FLAGS "${OLD_CMAKE_REQUIRED_FLAGS}") +ENDIF() # Generate "config.h" from "build/cmake/config.h.in" CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/config.h.in |