diff --git a/NCEP_bufr/CMakeLists.txt b/NCEP_bufr/CMakeLists.txt index 6a98484..cd2db0c 100644 --- a/NCEP_bufr/CMakeLists.txt +++ b/NCEP_bufr/CMakeLists.txt @@ -374,17 +374,9 @@ if (INTEGER_KIND STREQUAL "i8") target_compile_definitions (${this} PRIVATE -DF77_INTSIZE_8) endif() - -if (CMAKE_C_COMPILER_ID MATCHES Intel) - target_compile_definitions (${this} PRIVATE $<$:STATIC_ALLOCATION>) -elseif (CMAKE_C_COMPILER_ID MATCHES "GNU") - target_compile_definitions (${this} PRIVATE $<$:DYNAMIC_ALLOCATION>) -endif () +target_compile_definitions (${this} PRIVATE $<$:DYNAMIC_ALLOCATION>) target_compile_definitions (${this} PRIVATE $<$:MAXNC=600>) target_compile_definitions (${this} PRIVATE $<$:MXNAF=3>) target_compile_definitions (${this} PRIVATE $<$:UNDERSCORE>) -if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU") - target_compile_definitions (${this} PRIVATE $<$:DYNAMIC_ALLOCATION>) -endif () - +target_compile_definitions (${this} PRIVATE $<$:DYNAMIC_ALLOCATION>)