diff options
author | Brad King <brad.king@kitware.com> | 2022-09-30 11:24:41 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-30 11:24:48 (GMT) |
commit | c7170651f48bac9e6b80c58f5e97f687d9f6c302 (patch) | |
tree | 8090d813f278cd9efb46223752d41557a571f519 /Tests | |
parent | e02204d8944dc97469078ff3d1c2d708c4f4308a (diff) | |
parent | d0a6ebf57bf4d42a5b6875d3064ce1c207b9cc40 (diff) | |
download | CMake-c7170651f48bac9e6b80c58f5e97f687d9f6c302.zip CMake-c7170651f48bac9e6b80c58f5e97f687d9f6c302.tar.gz CMake-c7170651f48bac9e6b80c58f5e97f687d9f6c302.tar.bz2 |
Merge topic 'xcode-build-layout'
d0a6ebf57b Xcode: Fix "clean" operation under the "new build system"
dc5fc898f6 Xcode: Set object file locations using TARGET_TEMP_DIR
a7fb4bc475 Xcode: Set build product locations using CONFIGURATION_BUILD_DIR
6883b82124 cmGlobalXCodeGenerator: Remove unused local variable settings
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7730
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/XcodeProject/Clean.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/XcodeProject/Clean/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/XcodeProject/Clean/empty.c | 0 | ||||
-rw-r--r-- | Tests/RunCMake/XcodeProject/RunCMakeTest.cmake | 8 |
4 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/Clean.cmake b/Tests/RunCMake/XcodeProject/Clean.cmake new file mode 100644 index 0000000..1ab7e10 --- /dev/null +++ b/Tests/RunCMake/XcodeProject/Clean.cmake @@ -0,0 +1,2 @@ +enable_language(C) +add_subdirectory(Clean) diff --git a/Tests/RunCMake/XcodeProject/Clean/CMakeLists.txt b/Tests/RunCMake/XcodeProject/Clean/CMakeLists.txt new file mode 100644 index 0000000..59e62cb --- /dev/null +++ b/Tests/RunCMake/XcodeProject/Clean/CMakeLists.txt @@ -0,0 +1 @@ +add_library(empty empty.c) diff --git a/Tests/RunCMake/XcodeProject/Clean/empty.c b/Tests/RunCMake/XcodeProject/Clean/empty.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/RunCMake/XcodeProject/Clean/empty.c diff --git a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake index d20f5a6..879b38e 100644 --- a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake +++ b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake @@ -1,5 +1,13 @@ include(RunCMake) +function(RunClean) + set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/Clean-build) + run_cmake(Clean) + set(RunCMake_TEST_NO_CLEAN 1) + run_cmake_command(Clean-build xcodebuild clean) +endfunction() +RunClean() + run_cmake(ExplicitCMakeLists) run_cmake(ImplicitCMakeLists) run_cmake(InterfaceLibSources) |