Skip to content

Commit 9f8986d

Browse files
committed
Guard OpenSSL find_package
1 parent 72a9c97 commit 9f8986d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${ZSWAG_DEPLOY_DIR}")
4444
##############
4545
# dependencies
4646

47-
find_package(OpenSSL CONFIG REQUIRED)
47+
if(NOT TARGET OpenSSL)
48+
find_package(OpenSSL CONFIG REQUIRED)
49+
endif()
50+
4851
if(ZSWAG_KEYCHAIN_SUPPORT)
4952
find_package(keychain CONFIG REQUIRED)
5053
endif()

0 commit comments

Comments
 (0)