CMake: Use OPENSSL package correctly in p3prc

This commit is contained in:
Sam Edwards 2018-08-14 17:06:46 -06:00
parent 4c8693f019
commit 0feadd9775

View File

@ -76,7 +76,8 @@ target_include_directories(p3prc PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
# The extensions need py_panda.h and extension.h from interrogatedb
target_include_directories(p3prc PUBLIC
$<TARGET_PROPERTY:p3interrogatedb,INTERFACE_INCLUDE_DIRECTORIES>)
target_link_libraries(p3prc p3dtool ${_OPENSSL_LIBRARIES})
target_link_libraries(p3prc p3dtool)
target_use_packages(p3prc OPENSSL)
target_interrogate(p3prc ALL EXTENSIONS ${P3PRC_IGATEEXT})
install(TARGETS p3prc DESTINATION lib)