summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject/Foo
diff options
context:
space:
mode:
authorChris Mahoney <chris.mahoney@kitware.com>2023-08-09 14:28:25 (GMT)
committerChris Mahoney <chris.mahoney@kitware.com>2023-08-15 12:21:30 (GMT)
commitbc43398e72be08b55d7df1f5195f0c3fc37506da (patch)
tree042e77e41a12cfeebf759b6aff2f09640c9177e4 /Tests/RunCMake/ExternalProject/Foo
parent99be022428dcbf505cf889ff5d6f8de62821f652 (diff)
downloadCMake-bc43398e72be08b55d7df1f5195f0c3fc37506da.zip
CMake-bc43398e72be08b55d7df1f5195f0c3fc37506da.tar.gz
CMake-bc43398e72be08b55d7df1f5195f0c3fc37506da.tar.bz2
ExternalProject: Enable Make Job Server with Explicit Build Command
Introduces `BUILD_JOB_SERVER_AWARE` option to `ExternalProject_Add` and `JOB_SERVER_AWARE` to `ExternalProject_Add_Step`. When using an explicit `BUILD_COMMAND` or `COMMAND`, the generated commands won't use `$(MAKE)` thus failing to connect to the outer make's job server. These new options enable explicit job server integration. Co-authored-by: Brad King <brad.king@kitware.com> Fixes: #16273
Diffstat (limited to 'Tests/RunCMake/ExternalProject/Foo')
-rw-r--r--Tests/RunCMake/ExternalProject/Foo/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/ExternalProject/Foo/CMakeLists.txt b/Tests/RunCMake/ExternalProject/Foo/CMakeLists.txt
new file mode 100644
index 0000000..b38b173
--- /dev/null
+++ b/Tests/RunCMake/ExternalProject/Foo/CMakeLists.txt
@@ -0,0 +1,4 @@
+cmake_minimum_required(VERSION 3.27)
+project(Foo NONE)
+
+add_custom_target(drive ALL COMMAND ${CMAKE_COMMAND} -E true)