Browse Source

CMake: Use OPENSSL package correctly in p3prc

Sam Edwards 7 years ago
parent
commit
0feadd9775
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dtool/src/prc/CMakeLists.txt

+ 2 - 1
dtool/src/prc/CMakeLists.txt

@@ -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)