diff options
author | Brad King <brad.king@kitware.com> | 2020-11-25 13:12:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-25 13:49:38 (GMT) |
commit | 01d91ae5f26c25fe11e4eedd16ed8d8163636015 (patch) | |
tree | 98cea1a12cc2b980e5754e0efe1fe0d5687a351a /Tests/RunCMake/CMakeLists.txt | |
parent | 9e83e77129880885d0490d6519e30c1559c5a47c (diff) | |
download | CMake-01d91ae5f26c25fe11e4eedd16ed8d8163636015.zip CMake-01d91ae5f26c25fe11e4eedd16ed8d8163636015.tar.gz CMake-01d91ae5f26c25fe11e4eedd16ed8d8163636015.tar.bz2 |
Tests: Fix RunCMake.Check* conditions for enabling Fortran
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r-- | Tests/RunCMake/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index 7000b79..615bf20 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -539,10 +539,13 @@ add_RunCMake_test(target_compile_options -DCMAKE_C_COMPILER_ID=${CMAKE_C_COMPILE add_RunCMake_test(target_include_directories) add_RunCMake_test(target_sources) add_RunCMake_test(CheckCompilerFlag -DCMake_TEST_CUDA=${CMake_TEST_CUDA} - -DCMake_TEST_ISPC=${CMake_TEST_ISPC}) + -DCMake_TEST_ISPC=${CMake_TEST_ISPC} + -DCMAKE_Fortran_COMPILER_ID=${CMAKE_Fortran_COMPILER_ID}) add_RunCMake_test(CheckSourceCompiles -DCMake_TEST_CUDA=${CMake_TEST_CUDA} - -DCMake_TEST_ISPC=${CMake_TEST_ISPC}) -add_RunCMake_test(CheckSourceRuns -DCMake_TEST_CUDA=${CMake_TEST_CUDA}) + -DCMake_TEST_ISPC=${CMake_TEST_ISPC} + -DCMAKE_Fortran_COMPILER_ID=${CMAKE_Fortran_COMPILER_ID}) +add_RunCMake_test(CheckSourceRuns -DCMake_TEST_CUDA=${CMake_TEST_CUDA} + -DCMAKE_Fortran_COMPILER_ID=${CMAKE_Fortran_COMPILER_ID}) set_property(TEST RunCMake.CheckCompilerFlag RunCMake.CheckSourceCompiles RunCMake.CheckSourceRuns |