Skip to content

Commit

Permalink
Merge pull request #121 from gardner48/check-for-fortran-interfaces
Browse files Browse the repository at this point in the history
Check if Fortran interfaces are enabled
  • Loading branch information
ax3l authored May 30, 2024
2 parents 2b99e21 + 20871b3 commit 2595b37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ExampleCodes/Amr/Advection_AmrLevel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if ( (AMReX_SPACEDIM EQUAL 1) OR NOT CMAKE_Fortran_COMPILER_LOADED )
if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FORTRAN )
return()
endif ()

Expand Down
2 changes: 1 addition & 1 deletion ExampleCodes/Basic/HeatEquation_EX1_CF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if ( (AMReX_SPACEDIM EQUAL 1) OR NOT CMAKE_Fortran_COMPILER_LOADED)
if ( (AMReX_SPACEDIM EQUAL 1) OR NOT AMReX_FINTERFACES)
return()
endif ()

Expand Down
2 changes: 1 addition & 1 deletion ExampleCodes/Basic/HeatEquation_EX2_CF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if ( NOT CMAKE_Fortran_COMPILER_LOADED OR ( AMReX_SPACEDIM EQUAL 1) )
if ( NOT AMReX_FINTERFACES OR ( AMReX_SPACEDIM EQUAL 1) )
return()
endif ()

Expand Down

0 comments on commit 2595b37

Please sign in to comment.