You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
653 B
21 lines
653 B
include(RunCMake)
|
|
|
|
run_cmake(NoArguments)
|
|
run_cmake(BadTargetName)
|
|
run_cmake(ByproductsNoCommand)
|
|
run_cmake(UsesTerminalNoCommand)
|
|
|
|
function(run_TargetOrder)
|
|
# Use a single build tree for a few tests without cleaning.
|
|
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/TargetOrder-build)
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
|
|
file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
|
|
run_cmake(TargetOrder)
|
|
if(RunCMake_GENERATOR STREQUAL "Ninja")
|
|
set(build_flags -j 1 -v)
|
|
endif()
|
|
run_cmake_command(TargetOrder-build ${CMAKE_COMMAND} --build . -- ${build_flags})
|
|
endfunction()
|
|
run_TargetOrder()
|