Skip to content

Commit

Permalink
Merge pull request #375 from ryuichis/openssl-static-linking
Browse files Browse the repository at this point in the history
Linking OpenSSL static libraries
  • Loading branch information
Ryuichi Saito committed Sep 18, 2016
2 parents 5889b5e + 09a3b1d commit 8ff8028
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions oclint-driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,21 @@ TARGET_LINK_LIBRARIES(oclint-${OCLINT_VERSION_RELEASE}
)

IF((NOT NO_ANALYTICS) AND (NOT MINGW) AND (NOT DOC_GEN_BUILD) AND (NOT TEST_BUILD))
TARGET_LINK_LIBRARIES(oclint-${OCLINT_VERSION_RELEASE}
Countly
ssl
crypto
)
IF(APPLE)
TARGET_LINK_LIBRARIES(oclint-${OCLINT_VERSION_RELEASE}
Countly
/usr/local/opt/openssl/lib/libssl.a
/usr/local/opt/openssl/lib/libcrypto.a
)
ELSE()
FIND_LIBRARY(SSL_STATIC_LIB NAMES libssl.a)
FIND_LIBRARY(CRYPTO_STATIC_LIB NAMES libcrypto.a)
TARGET_LINK_LIBRARIES(oclint-${OCLINT_VERSION_RELEASE}
Countly
${SSL_STATIC_LIB}
${CRYPTO_STATIC_LIB}
)
ENDIF()
ENDIF()

IF(TEST_BUILD)
Expand Down

0 comments on commit 8ff8028

Please sign in to comment.