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.
17 lines
564 B
17 lines
564 B
set(BUILD_DIR "${RunCMake_BINARY_DIR}/GNUMakeJobServerAware-build")
|
|
|
|
function(check target regex)
|
|
file(STRINGS ${BUILD_DIR}/${target} lines
|
|
REGEX ${regex}
|
|
)
|
|
|
|
list(LENGTH lines len)
|
|
if(len EQUAL 0)
|
|
message(FATAL_ERROR "Could not find matching lines '${regex}' in ${BUILD_DIR}/${target}")
|
|
endif()
|
|
endfunction()
|
|
|
|
check("/CMakeFiles/Foo.dir/build.make" [[\+cd (/d )?"?.*"? && "?.*"? --build "?.*"?]])
|
|
check("/CMakeFiles/Foo.dir/build.make" [[\+cd (/d )?"?.*"? && "?.*"? -E touch "?.*"?]])
|
|
check("/CMakeFiles/Foo.dir/build.make" [[\+"?.*"? -E true]])
|