cmake/Tests/RunCMake/build_command/ParallelLevel.cmake
2021-09-14 00:13:48 +02:00

6 lines
171 B
CMake

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()