diff options
author | Brad King <brad.king@kitware.com> | 2017-03-08 14:12:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-08 14:12:09 (GMT) |
commit | 7e8b08ec6446649c9bcf4e48ff7810f4a0379bbe (patch) | |
tree | fcd6b900b50fe3cf9e712e5c5fc8725fa24c4120 /Tests/CheckFortran.cmake | |
parent | 0f5e76df0cc97808f7dacdeb4376fe249af6c919 (diff) | |
download | CMake-7e8b08ec6446649c9bcf4e48ff7810f4a0379bbe.zip CMake-7e8b08ec6446649c9bcf4e48ff7810f4a0379bbe.tar.gz CMake-7e8b08ec6446649c9bcf4e48ff7810f4a0379bbe.tar.bz2 |
Tests: Pass generator platform and toolset into check for Fortran
Check for a Fortran compiler that supports the same target platform
as we are testing.
Diffstat (limited to 'Tests/CheckFortran.cmake')
-rw-r--r-- | Tests/CheckFortran.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/CheckFortran.cmake b/Tests/CheckFortran.cmake index 93990ad..b1652ba 100644 --- a/Tests/CheckFortran.cmake +++ b/Tests/CheckFortran.cmake @@ -18,6 +18,8 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" execute_process( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/CheckFortran COMMAND ${CMAKE_COMMAND} . -G ${CMAKE_GENERATOR} + -A "${CMAKE_GENERATOR_PLATFORM}" + -T "${CMAKE_GENERATOR_TOOLSET}" OUTPUT_VARIABLE output ERROR_VARIABLE output RESULT_VARIABLE result |