]> granicus.if.org Git - clang/commitdiff
[clang] Set CMP0075 to new
authorShoaib Meenai <smeenai@fb.com>
Thu, 8 Nov 2018 00:29:33 +0000 (00:29 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 8 Nov 2018 00:29:33 +0000 (00:29 +0000)
Make the check_include_file* macros honor CMAKE_REQUIRED_LIBRARIES. This
shouldn't cause any of the configuration checks to give different
results, and I verified that a clean configure before and after this
change resulted in identical CMake caches on my machine. The same change
was done for LLVM in r346377.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346378 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 3f5c3ae2ac4f8e6411c6d8d5de01e45e6874cd91..0a0f885b2be2381dc0f7a27617d1d8aa8349f3c2 100644 (file)
@@ -1,5 +1,9 @@
 cmake_minimum_required(VERSION 3.4.3)
 
+if(POLICY CMP0075)
+  cmake_policy(SET CMP0075 NEW)
+endif()
+
 # If we are not building as a part of LLVM, build Clang as an
 # standalone project, using LLVM as an external library:
 if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )