Skip to content

Commit def0823

Browse files
committed
[compiler-rt] Set CMP0114 policy for standalone build
Fixes sanitizer-x86_64-linux-qemu bot.
1 parent 0f8e7b4 commit def0823

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler-rt/cmake/Modules/AddCompilerRT.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ include(ExternalProject)
22
include(CompilerRTUtils)
33
include(HandleCompilerRT)
44

5+
# CMP0114: ExternalProject step targets fully adopt their steps.
6+
# New in CMake 3.19: https://cmake.org/cmake/help/latest/policy/CMP0114.html
7+
if(POLICY CMP0114)
8+
cmake_policy(SET CMP0114 OLD)
9+
endif()
10+
511
function(set_target_output_directories target output_dir)
612
# For RUNTIME_OUTPUT_DIRECTORY variable, Multi-configuration generators
713
# append a per-configuration subdirectory to the specified directory.

0 commit comments

Comments
 (0)