Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Fortran from language dependencies when not needed. #1281

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 )
Davknapp marked this conversation as resolved.
Show resolved Hide resolved
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