summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/build_command/ParallelLevel.cmake
diff options
context:
space:
mode:
authorfriendlyanon <friendlyanon_@hotmail.com>2021-05-01 16:10:21 +0200
committerfriendlyanon <friendlyanon_@hotmail.com>2021-05-04 20:17:17 +0200
commitfc2ac460435df289149e4faaf494e6b287071a8c (patch)
tree6b08af5df9a9f1f3fe1fd90f54a220118a1e9301 /Tests/RunCMake/build_command/ParallelLevel.cmake
parent4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae (diff)
downloadcmake-fc2ac460435df289149e4faaf494e6b287071a8c.tar.gz
build_command: Add the PARALLEL_LEVEL argument
Issue: #19712
Diffstat (limited to 'Tests/RunCMake/build_command/ParallelLevel.cmake')
-rw-r--r--Tests/RunCMake/build_command/ParallelLevel.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/build_command/ParallelLevel.cmake b/Tests/RunCMake/build_command/ParallelLevel.cmake
new file mode 100644
index 0000000000..1d1e525f75
--- /dev/null
+++ b/Tests/RunCMake/build_command/ParallelLevel.cmake
@@ -0,0 +1,5 @@
+cmake_policy(SET CMP0061 NEW)
+build_command(cmd PARALLEL_LEVEL 1)
+if(NOT cmd MATCHES [[ --parallel "1"]])
+ message(FATAL_ERROR "Cannot find the --parallel flag")
+endif()