From b8ecd4df5f9259f102d82011693eca6282be5ae6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 14 Sep 2020 15:05:33 -0400 Subject: 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. --- Tests/ExternalProjectLocal/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Tests/ExternalProjectLocal') diff --git a/Tests/ExternalProjectLocal/CMakeLists.txt b/Tests/ExternalProjectLocal/CMakeLists.txt index 1075a9d079..789e4fb290 100644 --- a/Tests/ExternalProjectLocal/CMakeLists.txt +++ b/Tests/ExternalProjectLocal/CMakeLists.txt @@ -1,5 +1,8 @@ cmake_minimum_required(VERSION 2.8) project(ExternalProjectLocalTest NONE) +if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12) + cmake_policy(SET CMP0114 NEW) +endif() include(ExternalProject) -- cgit v1.2.1