We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc43bf8 commit d128efcCopy full SHA for d128efc
cmake/boringssl-adjust.cmake
@@ -10,7 +10,14 @@ FUNCTION (BORINGSSL_ADJUST)
10
ENDIF ()
11
LIST(APPEND OPENSSL_CRYPTO_LIBRARIES "${LIBDECREPIT_PATH}")
12
SET(OPENSSL_CRYPTO_LIBRARIES "${OPENSSL_CRYPTO_LIBRARIES}" PARENT_SCOPE)
13
- LIST(APPEND OPENSSL_LIBRARIES "${LIBDECREPIT_PATH}")
+ IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
14
+ SET(CXXLIB "-lc++")
15
+ ELSEIF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
16
+ SET(CXXLIB "-lstdc++")
17
+ ELSE ()
18
+ MESSAGE(FATAL_ERROR "do not know how to declare dependency on C++ stdlib even though libssl.a depends on it")
19
+ ENDIF ()
20
+ LIST(APPEND OPENSSL_LIBRARIES "${LIBDECREPIT_PATH}" "${CXXLIB}")
21
SET(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES}" PARENT_SCOPE)
22
23
ENDFUNCTION ()
0 commit comments