diff options
author | Brad King <brad.king@kitware.com> | 2020-09-14 19:05:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-18 17:46:45 (GMT) |
commit | b8ecd4df5f9259f102d82011693eca6282be5ae6 (patch) | |
tree | 435d7ae8fc75a2ca97b4b1d5fc7404fbe92a4045 /Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake | |
parent | fe258f638276c879bbdd2ac165ac4caba0efc921 (diff) | |
download | CMake-b8ecd4df5f9259f102d82011693eca6282be5ae6.zip CMake-b8ecd4df5f9259f102d82011693eca6282be5ae6.tar.gz CMake-b8ecd4df5f9259f102d82011693eca6282be5ae6.tar.bz2 |
ExternalProject: Use CMP0114 NEW behavior with Xcode "new build system"
The ExternalProject module cannot be implemented in the Xcode "new build
system" without using CMP0114's NEW behavior. When configuring for that
build system, warn if the policy is not set to NEW and use NEW behavior
anyway.
Diffstat (limited to 'Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake')
-rw-r--r-- | Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake b/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake index 7c75007..039dec6 100644 --- a/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake +++ b/Tests/RunCMake/ExternalProject/Add_StepDependencies_no_target.cmake @@ -1,5 +1,9 @@ cmake_minimum_required(VERSION ${CMAKE_VERSION}) -cmake_policy(SET CMP0114 OLD) # Test deprecated behavior. +if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12) + cmake_policy(SET CMP0114 NEW) +else() + cmake_policy(SET CMP0114 OLD) # Test deprecated behavior. +endif() include(ExternalProject) |