diff --git a/GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/cice6_cmake/CMakeLists.txt b/GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/cice6_cmake/CMakeLists.txt index a7d9af835..2be47e02d 100644 --- a/GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/cice6_cmake/CMakeLists.txt +++ b/GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/cice6_cmake/CMakeLists.txt @@ -127,3 +127,9 @@ esma_add_library (${this} target_compile_definitions (${this} PRIVATE USE_NETCDF GEOSCOUPLED FORTRANUNDERSCORE) +# GCC 14 is taking *forever* to compile icepack_shortwave_data.F90 +# so we're going to use -O0 for this file only +if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU) + set_source_files_properties(icepack/columnphysics/icepack_shortwave_data.F90 PROPERTIES COMPILE_OPTIONS ${FOPT0}) +endif () +