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 f961062 commit f550da6Copy full SHA for f550da6
1 file changed
src/CMakeLists.txt
@@ -1,5 +1,15 @@
1
add_library(ncrypto ncrypto.cpp engine.cpp)
2
-target_link_libraries(ncrypto PUBLIC OpenSSL::SSL OpenSSL::Crypto)
+if (NCRYPTO_SHARED_LIBS)
3
+ target_link_libraries(ncrypto PUBLIC OpenSSL::SSL OpenSSL::Crypto)
4
+else()
5
+ target_link_libraries(ncrypto PUBLIC ssl crypto)
6
+
7
+ if (NCRYPTO_BSSL_LIBDECREPIT_MISSING)
8
+ target_compile_definitions(ncrypto PUBLIC NCRYPTO_BSSL_LIBDECREPIT_MISSING=1)
9
+ else()
10
+ target_link_libraries(ncrypto PUBLIC decrepit)
11
+ endif()
12
+endif()
13
target_include_directories(ncrypto
14
PUBLIC
15
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
0 commit comments