Skip to content

Commit

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

Differential Revision: https://reviews.llvm.org/D139633
  • Loading branch information
pscoro authored and daltenty committed Dec 12, 2022
1 parent 361a7aa commit 8c18b14
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(${TEST_SUITE_SUBDIRS} MATCHES "Fortran")
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 8c18b14

Please sign in to comment.