diff --git a/source/glest_game/CMakeLists.txt b/source/glest_game/CMakeLists.txt index 1d3cdb2e5..73de5151f 100644 --- a/source/glest_game/CMakeLists.txt +++ b/source/glest_game/CMakeLists.txt @@ -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() diff --git a/source/shared_lib/CMakeLists.txt b/source/shared_lib/CMakeLists.txt index d33bbd650..7f711f758 100644 --- a/source/shared_lib/CMakeLists.txt +++ b/source/shared_lib/CMakeLists.txt @@ -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})