Skip to content

Commit

Permalink
for OpenSSL, use include instead of find_package
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Aug 17, 2022
1 parent e97d03e commit 3c8df94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/glest_game/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ IF(BUILD_MEGAGLEST)
ENDIF()

IF(WANT_USE_OpenSSL)
FIND_PACKAGE(OpenSSL)
include(FindOpenSSL)
IF(OPENSSL_FOUND)
INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
ELSE()
Expand Down
2 changes: 1 addition & 1 deletion source/shared_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ IF(BUILD_MEGAGLEST_MODEL_VIEWER OR BUILD_MEGAGLEST_MAP_EDITOR OR BUILD_MEGAGLEST
ENDIF()

IF(WANT_USE_OpenSSL)
FIND_PACKAGE(OPENSSL REQUIRED) # required for curl
include(FindOpenSSL)
IF(OPENSSL_FOUND)
INCLUDE_DIRECTORIES(${OPENSSL_INCLUDE_DIR})
SET(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${OPENSSL_LIBRARIES})
Expand Down

0 comments on commit 3c8df94

Please sign in to comment.