summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Make/GNUMakeJobServerAware.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/Make/GNUMakeJobServerAware.cmake')
-rw-r--r--Tests/RunCMake/Make/GNUMakeJobServerAware.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/GNUMakeJobServerAware.cmake b/Tests/RunCMake/Make/GNUMakeJobServerAware.cmake
new file mode 100644
index 0000000..951c2d7
--- /dev/null
+++ b/Tests/RunCMake/Make/GNUMakeJobServerAware.cmake
@@ -0,0 +1,12 @@
+add_custom_command(
+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/custom-command"
+ JOB_SERVER_AWARE ON
+ COMMAND $(CMAKE_COMMAND) -E touch "${CMAKE_CURRENT_BINARY_DIR}/custom-command"
+)
+add_custom_target(dummy ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/custom-command")
+
+add_custom_target(
+ dummy2 ALL
+ JOB_SERVER_AWARE ON
+ COMMAND ${CMAKE_COMMAND} -E true
+)