From c71080d469861475e500b7e6fce518e01e89d116 Mon Sep 17 00:00:00 2001 From: Joseph Southwell Date: Fri, 5 Jan 2024 10:08:52 -0600 Subject: [PATCH] don't explicitely include FindOpenSSL.cmake, let find_package do it implicitely --- cmake/Modules/FindOpenSSLFeatures.cmake | 1 - src/lib/CMakeLists.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/cmake/Modules/FindOpenSSLFeatures.cmake b/cmake/Modules/FindOpenSSLFeatures.cmake index d5d9d2e5f4..c3e3e33149 100644 --- a/cmake/Modules/FindOpenSSLFeatures.cmake +++ b/cmake/Modules/FindOpenSSLFeatures.cmake @@ -74,7 +74,6 @@ file(WRITE "${_fossl_work_dir}/CMakeLists.txt" "cmake_minimum_required(VERSION 3.18)\n\ project(findopensslfeatures LANGUAGES C)\n\ set(CMAKE_C_STANDARD 99)\n\ -include(FindOpenSSL)\n\ find_package(OpenSSL REQUIRED)\n\ add_executable(findopensslfeatures findopensslfeatures.c)\n\ target_include_directories(findopensslfeatures PRIVATE ${OPENSSL_INCLUDE_DIR})\n\ diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 6b3189fc52..60c8063880 100755 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -40,7 +40,6 @@ elseif (CRYPTO_BACKEND_BOTAN) endif() endif() if (CRYPTO_BACKEND_OPENSSL) - include(FindOpenSSL) find_package(OpenSSL 1.1.1 REQUIRED) include(FindOpenSSLFeatures) if("${OPENSSL_VERSION}" VERSION_GREATER_EQUAL "3.0.0")