diff options
author | friendlyanon <friendlyanon_@hotmail.com> | 2021-05-01 14:10:21 (GMT) |
---|---|---|
committer | friendlyanon <friendlyanon_@hotmail.com> | 2021-05-04 18:17:17 (GMT) |
commit | fc2ac460435df289149e4faaf494e6b287071a8c (patch) | |
tree | 6b08af5df9a9f1f3fe1fd90f54a220118a1e9301 /Tests | |
parent | 4dd4e9dd6ce5efd9bb9bbb784816167a8b5873ae (diff) | |
download | CMake-fc2ac460435df289149e4faaf494e6b287071a8c.zip CMake-fc2ac460435df289149e4faaf494e6b287071a8c.tar.gz CMake-fc2ac460435df289149e4faaf494e6b287071a8c.tar.bz2 |
build_command: Add the PARALLEL_LEVEL argument
Issue: #19712
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/build_command/ParallelLevel.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/build_command/RunCMakeTest.cmake | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/build_command/ParallelLevel.cmake b/Tests/RunCMake/build_command/ParallelLevel.cmake new file mode 100644 index 0000000..1d1e525 --- /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() diff --git a/Tests/RunCMake/build_command/RunCMakeTest.cmake b/Tests/RunCMake/build_command/RunCMakeTest.cmake index c3bef4c..030db0b 100644 --- a/Tests/RunCMake/build_command/RunCMakeTest.cmake +++ b/Tests/RunCMake/build_command/RunCMakeTest.cmake @@ -14,3 +14,5 @@ if(RunCMake_GENERATOR MATCHES "Make") else() run_cmake(CMP0061-OLD-other) endif() + +run_cmake(ParallelLevel) |