]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a lack of definitions for OpenSSL library on CMake build system.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 14 Oct 2014 12:09:38 +0000 (21:09 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 14 Oct 2014 12:09:38 +0000 (21:09 +0900)
CMakeLists.txt
build/cmake/config.h.in

index 7f6cc4481117530d43ce59652c293ce34460b69f..9f18c8bce04112a396aa30282bf32cb058723a9b 100644 (file)
@@ -624,6 +624,9 @@ ENDIF(ENABLE_NETTLE)
 #
 IF(ENABLE_OPENSSL AND NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
   FIND_PACKAGE(OpenSSL)
+  IF(OPENSSL_FOUND)
+    SET(HAVE_LIBCRYPTO 1)
+  ENDIF(OPENSSL_FOUND)
 ELSE()
   SET(OPENSSL_FOUND FALSE) # Override cached value
 ENDIF()
index a08c3bd8606675f95a1ff9ae07785b1650a8506c..7d7230e553bc15561db85b228285ead9af837692 100644 (file)
@@ -585,6 +585,12 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the `bz2' library (-lbz2). */
 #cmakedefine HAVE_LIBBZ2 1
 
+/* Define to 1 if you have the `charset' library (-lcharset). */
+#cmakedefine HAVE_LIBCHARSET 1
+
+/* Define to 1 if you have the `crypto' library (-lcrypto). */
+#cmakedefine HAVE_LIBCRYPTO 1
+
 /* Define to 1 if you have the `expat' library (-lexpat). */
 #cmakedefine HAVE_LIBEXPAT 1