blob: 802c50371d5af686279ee3ae52e54f2d2590d3a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
include(RunCMake)
run_cmake(WrongArguments)
function(check_path_execution name)
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${name}-build)
set(RunCMake_TEST_NO_CLEAN 1)
set(RunCMake_TEST_VARIANT_DESCRIPTION " - ${name}")
run_cmake_with_options(generate -DPATH_TEST=${name})
run_cmake_command(check "${CMAKE_COMMAND}" "-DRunCMake_SOURCE_DIR=${RunCMake_SOURCE_DIR}" -P "${RunCMake_TEST_BINARY_DIR}/${name}.cmake")
endfunction()
check_path_execution (PATH_EQUAL)
|