summaryrefslogtreecommitdiffstats
path: root/Tests/CheckFortran.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-06 12:50:08 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-06 15:21:11 (GMT)
commit6e2193a26dd3e73af41a86f672d84144beb5a3c9 (patch)
treed6e181c70b4063f6b92b5a96f3bc04e1ca708ae7 /Tests/CheckFortran.cmake
parente673e6f053f7320f78a2ce9ed262f9c11e503998 (diff)
downloadCMake-6e2193a26dd3e73af41a86f672d84144beb5a3c9.zip
CMake-6e2193a26dd3e73af41a86f672d84144beb5a3c9.tar.gz
CMake-6e2193a26dd3e73af41a86f672d84144beb5a3c9.tar.bz2
Tests: Avoid hanging on check for Fortran
Use a timeout when running the check for Fortran in case the tools hang.
Diffstat (limited to 'Tests/CheckFortran.cmake')
-rw-r--r--Tests/CheckFortran.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/CheckFortran.cmake b/Tests/CheckFortran.cmake
index 653f521..16a8ed2 100644
--- a/Tests/CheckFortran.cmake
+++ b/Tests/CheckFortran.cmake
@@ -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