]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
cmake: Set CMP0075 to NEW (#2067)
authorCollin Funk <collin.funk1@gmail.com>
Sat, 23 Mar 2024 17:17:09 +0000 (10:17 -0700)
committerGitHub <noreply@github.com>
Sat, 23 Mar 2024 17:17:09 +0000 (18:17 +0100)
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 <collin.funk1@gmail.com>
CMakeLists.txt

index 71248c62af5b2563f22f87327fca006b8a0b0ef9..be6cfd2a80276fe2ff1266d3955aaccf5237a7d1 100644 (file)
@@ -6,6 +6,9 @@ endif()
 if(POLICY CMP0074)
   cmake_policy(SET CMP0074 NEW) #3.12.0 `find_package()`` uses ``<PackageName>_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)
 #