summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-02-18 13:51:43 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-02-18 13:51:54 (GMT)
commitabc12c4e96961a3d2142972e55c01031db3b9d75 (patch)
treedb95cfee2a4b580ffa20192d6e927347ba166595
parent9c81f2cb8bcb5f4ad96f2ad527035649bd70d5fc (diff)
parent483a1c248c7d46edf76070d9861ebdfc27b7a7a4 (diff)
downloadCMake-abc12c4e96961a3d2142972e55c01031db3b9d75.zip
CMake-abc12c4e96961a3d2142972e55c01031db3b9d75.tar.gz
CMake-abc12c4e96961a3d2142972e55c01031db3b9d75.tar.bz2
Merge topic 'libarchive-openssl-crypto-checks' into release-3.23
483a1c248c libarchive: Fix OpenSSL crypto library checks for build inside CMake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6997
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index c2aa182..2a788ff 100644
--- a/Utilities/cmlibarchive/CMakeLists.txt
+++ b/Utilities/cmlibarchive/CMakeLists.txt
@@ -863,6 +863,8 @@ MACRO(CHECK_CRYPTO ALGORITHMS IMPLEMENTATION)
# crypto implementation is available on this platform.
SET(TRY_CRYPTO_REQUIRED_INCLUDES
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_BINARY_DIR};${CMAKE_CURRENT_SOURCE_DIR}/libarchive;${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp")
+ LIST(APPEND TRY_CRYPTO_REQUIRED_INCLUDES "${CMake_SOURCE_DIR}/Utilities" "${CMake_BINARY_DIR}/Utilities") # for KWIML inside CMake
+
SET(TRY_CRYPTO_REQUIRED_LIBS)
IF ("${IMPLEMENTATION}" MATCHES "^OPENSSL$" AND OPENSSL_FOUND)
SET(TRY_CRYPTO_REQUIRED_INCLUDES