Tests: Avoid hanging on check for Fortran

Use a timeout when running the check for Fortran in case the tools hang.
This commit is contained in:
Brad King 2017-11-06 07:50:08 -05:00
parent e673e6f053
commit 6e2193a26d

View File

@ -26,6 +26,7 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
-A "${CMAKE_GENERATOR_PLATFORM}"
-T "${CMAKE_GENERATOR_TOOLSET}"
${_D_CMAKE_GENERATOR_INSTANCE}
TIMEOUT 60
OUTPUT_VARIABLE output
ERROR_VARIABLE output
RESULT_VARIABLE result