diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-05-24 17:57:40 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-05-24 17:57:40 (GMT) |
commit | bf75369ed40f0adfe687396573b804ae6209161d (patch) | |
tree | d0641606013b83fcf56438b7d5fe44bd6c8ca4f7 /Tests/RunCMake/build_command | |
parent | 38f2562d5b159cdf7ce4340911c1adb30b3a003e (diff) | |
parent | c3b9d9b756c84961208ad3086f5f123828fc5400 (diff) | |
download | CMake-bf75369ed40f0adfe687396573b804ae6209161d.zip CMake-bf75369ed40f0adfe687396573b804ae6209161d.tar.gz CMake-bf75369ed40f0adfe687396573b804ae6209161d.tar.bz2 |
Merge branch 'master' into cmp0082-exclude-from-all
Diffstat (limited to 'Tests/RunCMake/build_command')
-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) |