diff options
author | Brad King <brad.king@kitware.com> | 2020-09-15 15:21:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-18 17:02:19 (GMT) |
commit | 1806cdd17c17fc202b4d7c195b1830cfc038a3a2 (patch) | |
tree | b4a2063cf84cd2784e045429165b40ddbda18bea /Tests/Module | |
parent | 8d5f4c4db93959f77dc8fb185e4630df4ec26d98 (diff) | |
download | CMake-1806cdd17c17fc202b4d7c195b1830cfc038a3a2.zip CMake-1806cdd17c17fc202b4d7c195b1830cfc038a3a2.tar.gz CMake-1806cdd17c17fc202b4d7c195b1830cfc038a3a2.tar.bz2 |
Tests: Avoid duplicate custom commands for Xcode "new build system"
Diffstat (limited to 'Tests/Module')
-rw-r--r-- | Tests/Module/ExternalData/Data5/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/Module/ExternalData/Data5/CMakeLists.txt b/Tests/Module/ExternalData/Data5/CMakeLists.txt index ea67f05..b13240d 100644 --- a/Tests/Module/ExternalData/Data5/CMakeLists.txt +++ b/Tests/Module/ExternalData/Data5/CMakeLists.txt @@ -6,6 +6,13 @@ ExternalData_Add_Test(Data5.A -P ${CMAKE_CURRENT_SOURCE_DIR}/Data5Check.cmake ) ExternalData_Add_Target(Data5.A) + +if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12) + # Xcode's "new build system" does not support multiple targets + # producing the same custom command output. + return() +endif() + ExternalData_Add_Test(Data5.B NAME Data5Check.B COMMAND ${CMAKE_COMMAND} |