mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-07-04 15:23:41 +02:00
CMakeLists.txt: link with OpenSSL using imported target instead of variables.
This commit is contained in:
parent
9576e9d36f
commit
de7f1c3e19
1 changed files with 1 additions and 4 deletions
|
|
@ -60,16 +60,13 @@ endif()
|
||||||
|
|
||||||
|
|
||||||
target_link_libraries( ${LIB_NAME}
|
target_link_libraries( ${LIB_NAME}
|
||||||
INTERFACE
|
INTERFACE OpenSSL::Crypto
|
||||||
${OPENSSL_CRYPTO_LIBRARY}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories( ${LIB_NAME}
|
target_include_directories( ${LIB_NAME}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include>
|
||||||
PRIVATE
|
|
||||||
${OPENSSL_INCLUDE_DIR}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue