From def0823f1d2db78c4a18b15084407734a45e96c5 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 8 Nov 2022 22:59:03 -0800 Subject: [PATCH] [compiler-rt] Set CMP0114 policy for standalone build Fixes sanitizer-x86_64-linux-qemu bot. --- compiler-rt/cmake/Modules/AddCompilerRT.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index 00bb892..2771a40 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. -- 2.7.4