diff options
author | Brad King <brad.king@kitware.com> | 2016-09-22 18:23:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-22 18:52:01 (GMT) |
commit | eb8cd35684f2dc2f53d205d7738e1c01a12a493f (patch) | |
tree | 77732180392bf2da1fe0aa6facd25c9fe95e6614 /Tests/CMakeLists.txt | |
parent | a41c8724d155f1cd74ce36cdfbd10da0eac5b389 (diff) | |
download | CMake-eb8cd35684f2dc2f53d205d7738e1c01a12a493f.zip CMake-eb8cd35684f2dc2f53d205d7738e1c01a12a493f.tar.gz CMake-eb8cd35684f2dc2f53d205d7738e1c01a12a493f.tar.bz2 |
Tests: Split Fortran module testing into separate FortranModules test
The main Fortran test is not granular enough. Split some into another
test.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 8cf1faa..235e38a 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -3097,10 +3097,22 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release --build-project testf --build-two-config --build-options ${build_options} - -DCMake_TEST_NESTED_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM} --test-command testf) list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/Fortran") + if(CMAKE_Fortran_COMPILER_SUPPORTS_F90) + add_test(FortranModules ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/FortranModules" + "${CMake_BINARY_DIR}/Tests/FortranModules" + ${build_generator_args} + --build-project FortranModules + --build-options ${build_options} + -DCMake_TEST_NESTED_MAKE_PROGRAM:FILEPATH=${CMake_TEST_EXPLICIT_MAKE_PROGRAM} + ) + list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/FortranModules") + endif() + # FortranCInterface tests. if(UNIX) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/FortranC/Flags.cmake.in |