[compiler-rt] def0823 - [compiler-rt] Set CMP0114 policy for standalone build

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 23:01:28 PST 2022


Author: Vitaly Buka
Date: 2022-11-08T23:00:47-08:00
New Revision: def0823f1d2db78c4a18b15084407734a45e96c5

URL: https://github.com/llvm/llvm-project/commit/def0823f1d2db78c4a18b15084407734a45e96c5
DIFF: https://github.com/llvm/llvm-project/commit/def0823f1d2db78c4a18b15084407734a45e96c5.diff

LOG: [compiler-rt] Set CMP0114 policy for standalone build

Fixes sanitizer-x86_64-linux-qemu bot.

Added: 
    

Modified: 
    compiler-rt/cmake/Modules/AddCompilerRT.cmake

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
index 00bb892be595a..2771a4063c1df 100644
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -2,6 +2,12 @@ include(ExternalProject)
 include(CompilerRTUtils)
 include(HandleCompilerRT)
 
+# CMP0114: ExternalProject step targets fully adopt their steps.
+# New in CMake 3.19: https://cmake.org/cmake/help/latest/policy/CMP0114.html
+if(POLICY CMP0114)
+  cmake_policy(SET CMP0114 OLD)
+endif()
+
 function(set_target_output_directories target output_dir)
   # For RUNTIME_OUTPUT_DIRECTORY variable, Multi-configuration generators
   # append a per-configuration subdirectory to the specified directory.


        


More information about the llvm-commits mailing list