2018-03-17 19:47:12 +00:00
|
|
|
--- code/CMakeLists.txt.origin 2018-03-16 22:55:31.148698694 +0100
|
2018-03-17 16:39:52 +00:00
|
|
|
+++ code/CMakeLists.txt 2018-03-17 16:37:45.862885882 +0100
|
2018-03-17 16:00:42 +00:00
|
|
|
@@ -440,6 +440,20 @@
|
2018-03-17 15:39:17 +00:00
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY})
|
|
|
|
ENDIF()
|
|
|
|
|
2018-03-17 16:00:42 +00:00
|
|
|
+ # Solve issue : "md5.c:(.text+0x12): undefined reference to `MD5_Init'
|
|
|
|
+ # libcrypto
|
|
|
|
+ FIND_LIBRARY(LIBCRYPTO_LIBRARY NAMES libcryto crypto PATHS /usr/lib/x86_64-linux-gnu)
|
|
|
|
+ IF(LIBCRYPTO_LIBRARY)
|
|
|
|
+ MESSAGE("-- Found crypto (amd64): ${LIBCRYPTO_LIBRARY}")
|
|
|
|
+ SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${LIBCRYPTO_LIBRARY})
|
|
|
|
+ ELSE()
|
|
|
|
+ FIND_LIBRARY(LIBCRYPTO_LIBRARY NAMES libcryto crypto PATHS /usr/lib)
|
|
|
|
+ IF(LIBCRYPTO_LIBRARY)
|
|
|
|
+ MESSAGE("-- Found crypto: ${LIBCRYPTO_LIBRARY}")
|
|
|
|
+ SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${LIBCRYPTO_LIBRARY})
|
|
|
|
+ ENDIF()
|
|
|
|
+ ENDIF()
|
|
|
|
+
|
2018-03-17 15:39:17 +00:00
|
|
|
# CURL Macports version depends on libidn, libintl and libiconv too
|
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(INTL_LIBRARY intl)
|