From 483d1ae2ff1d5495cb4ed743e535077429545972 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 69677649d0..17f539c1f1 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 8f3ac7c896..931ced5faa 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")