Use OpenSSL::* CMake targets
This commit is contained in:
parent
a8b7dab938
commit
fff70e5231
1 changed files with 1 additions and 2 deletions
|
|
@ -51,8 +51,7 @@ if(USE_OPENSSL)
|
||||||
endif()
|
endif()
|
||||||
if(OPENSSL_FOUND)
|
if(OPENSSL_FOUND)
|
||||||
target_compile_definitions(simple-web-server INTERFACE HAVE_OPENSSL)
|
target_compile_definitions(simple-web-server INTERFACE HAVE_OPENSSL)
|
||||||
target_link_libraries(simple-web-server INTERFACE ${OPENSSL_LIBRARIES})
|
target_link_libraries(simple-web-server INTERFACE OpenSSL::SSL OpenSSL::Crypto)
|
||||||
target_include_directories(simple-web-server INTERFACE ${OPENSSL_INCLUDE_DIR})
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# If Simple-Web-Server is not a sub-project:
|
# If Simple-Web-Server is not a sub-project:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue