Skip to content

Commit

Permalink
don't explicitely include FindOpenSSL.cmake, let find_package do it i…
Browse files Browse the repository at this point in the history
…mplicitely
  • Loading branch information
cedral authored and ni4 committed Jan 16, 2024
1 parent 2231ae9 commit c71080d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmake/Modules/FindOpenSSLFeatures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down
1 change: 0 additions & 1 deletion src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c71080d

Please sign in to comment.