Skip to content

Commit

Permalink
Merge pull request #1281 from DLR-AMR/remove-fortran-dep-when-not-needed
Browse files Browse the repository at this point in the history
Remove Fortran from language dependencies when not needed.
  • Loading branch information
Davknapp authored Nov 19, 2024
2 parents 0d5740c + f289806 commit 1439d6e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include(cmake/GitProjectVersion.cmake)

project( T8CODE
DESCRIPTION "Parallel algorithms and data structures for tree-based AMR with arbitrary element shapes."
LANGUAGES C CXX Fortran
LANGUAGES C CXX
VERSION "${T8CODE_VERSION_MAJOR}.${T8CODE_VERSION_MINOR}.${T8CODE_VERSION_PATCH}" )
include( CTest )

Expand Down Expand Up @@ -64,6 +64,10 @@ set( CMAKE_CXX_EXTENSIONS OFF )

set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})

if( T8CODE_BUILD_FORTRAN_INTERFACE )
enable_language( Fortran )
endif()

if( T8CODE_ENABLE_MPI )
if( T8CODE_BUILD_FORTRAN_INTERFACE )
find_package( MPI COMPONENTS C Fortran REQUIRED )
Expand Down Expand Up @@ -152,7 +156,6 @@ if ( T8CODE_BUILD_DOCUMENTATION )
endif()

if( T8CODE_BUILD_FORTRAN_INTERFACE )
enable_language( Fortran )
add_subdirectory( ${CMAKE_CURRENT_LIST_DIR}/api/t8_fortran_interface )

if( NOT T8CODE_ENABLE_MPI )
Expand Down

0 comments on commit 1439d6e

Please sign in to comment.