Skip to content

Commit c4fab29

Browse files
committed
Do not bail out of CMake configuration process when Fortran module not
found. This could just be due to upper/lower case issue with some compilers, and hard to check all options (considering suffix) on the CMake level. Let it fail hard when ultimately the Fortran compiler cannot find the expected Fortran module.
1 parent 4df6a85 commit c4fab29

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/addon/ESMX/Driver/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,6 @@ foreach(CMP IN ITEMS ${COMPS})
474474
if(FND_FORT_MODULE)
475475
message(STATUS "ESMX Found Fortran module ${CMP_FORT_MODULE} for ${CMP} in: ${FND_FORT_MODULE}")
476476
target_include_directories(esmx_driver PUBLIC ${FND_FORT_MODULE})
477-
else()
478-
message(FATAL_ERROR "Cannot find fort_module ${CMP_FORT_MODULE} for ${CMP} in ${CMP_INSTALL_PREFIX}")
479477
endif()
480478
unset(FND_FORT_MODULE)
481479
# not a known CMake target -> find the libraries

0 commit comments

Comments
 (0)