From: Collin Funk Date: Sat, 23 Mar 2024 17:17:09 +0000 (-0700) Subject: cmake: Set CMP0075 to NEW (#2067) X-Git-Tag: v3.7.3~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcfef34f0ccaed0cb949803c5f3a0d47601e8b1c;p=thirdparty%2Flibarchive.git 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 --- 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) #