From dcfef34f0ccaed0cb949803c5f3a0d47601e8b1c Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 23 Mar 2024 10:17:09 -0700 Subject: [PATCH] cmake: Set CMP0075 to NEW (#2067) The new behavior of this policy makes check_include_file() and friends use the CMAKE_REQUIRED_LIBRARIES variable before checking for headers. This is used to check for cryptography algorithms provided by OpenSSL. Signed-off-by: Collin Funk --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71248c62a..be6cfd2a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,9 @@ endif() if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) #3.12.0 `find_package()`` uses ``_ROOT`` variables. endif() +if(POLICY CMP0075) + cmake_policy(SET CMP0075 NEW) #3.12.0 `check_include_file()`` and friends use ``CMAKE_REQUIRED_LIBRARIES``. +endif() # PROJECT(libarchive C) # -- 2.47.2