Skip to content

Commit

Permalink
Guard OpenSSL find_package
Browse files Browse the repository at this point in the history
  • Loading branch information
fklebert committed Apr 24, 2024
1 parent 72a9c97 commit 9f8986d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${ZSWAG_DEPLOY_DIR}")
##############
# dependencies

find_package(OpenSSL CONFIG REQUIRED)
if(NOT TARGET OpenSSL)
find_package(OpenSSL CONFIG REQUIRED)
endif()

if(ZSWAG_KEYCHAIN_SUPPORT)
find_package(keychain CONFIG REQUIRED)
endif()
Expand Down

0 comments on commit 9f8986d

Please sign in to comment.