cmake/Tests/RunCMake/build_command/ParallelLevel.cmake

6 lines
171 B
CMake
Raw Normal View History

2021-09-14 00:13:48 +02:00
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()