From 3c8df94e3c4e88e4bce6d0671f79a689cea1a7ff Mon Sep 17 00:00:00 2001 From: andy5995 Date: Wed, 17 Aug 2022 09:24:21 -0500 Subject: [PATCH] for OpenSSL, use include instead of find_package --- source/glest_game/CMakeLists.txt | 2 +- source/shared_lib/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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})