Skip to content

Commit

Permalink
Reland "Enable Fortran testsuite/language when TEST_SUITE_SUBDIRS=For…
Browse files Browse the repository at this point in the history
…tran is passed"

This relands 8c18b14 with a small fix to
use the IN_LIST operator.

Differential Revision: https://reviews.llvm.org/D139633
  • Loading branch information
pscoro authored and daltenty committed Jan 6, 2023
1 parent ab8ec6c commit de2e530
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -2,10 +2,16 @@ cmake_minimum_required(VERSION 3.13.4)

include(CheckSymbolExists)

option(TEST_SUITE_FORTRAN "Enable Fortran test suite" OFF)

project(test-suite C CXX)

if("Fortran" IN_LIST TEST_SUITE_SUBDIRS)
set(TEST_SUITE_FORTRAN_default ON)
else()
set(TEST_SUITE_FORTRAN_default OFF)
endif()
option(TEST_SUITE_FORTRAN "Enable Fortran test suite" ${TEST_SUITE_FORTRAN_default})

if(TEST_SUITE_FORTRAN)
enable_language(Fortran)
endif()
Expand Down
2 changes: 2 additions & 0 deletions Fortran/UnitTests/fcvs21_f95/CMakeLists.txt
Expand Up @@ -33,6 +33,8 @@
# explicit acknowledgement of what has been changed. Please
# amend README file if you modify the tests.

include(CheckFortranCompilerFlag)

# clean-up fort.* files otherwise one of the tests will fail
llvm_test_prepare(rm -f %S/fort.*)

Expand Down

0 comments on commit de2e530

Please sign in to comment.