From bc681fc3724857ee2def37e8fadd47e2916a7e55 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 26 May 2020 17:42:03 -0400 Subject: Hard-code some try_compile results for third-party libraries Our bundled third-party libraries perform many `try_compile` checks for compatibility with their upstream build systems. For many of the checks we already know the result for compilers we support for building CMake itself, especially on Windows. Hard-code known results to avoid running the checks. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 35531c6dca..15dbcd3306 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -337,6 +337,9 @@ endmacro() macro (CMAKE_BUILD_UTILITIES) find_package(Threads) + # Suppress unnecessary checks in third-party code. + include(Utilities/cmThirdPartyChecks.cmake) + #--------------------------------------------------------------------- # Create the kwsys library for CMake. set(KWSYS_NAMESPACE cmsys) -- cgit v1.2.1