Skip to content

Commit

Permalink
Use dynamic allocation with bufr for all compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Jun 2, 2024
1 parent 4c29094 commit e031efd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions NCEP_bufr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<COMPILE_LANGUAGE:C>:STATIC_ALLOCATION>)
elseif (CMAKE_C_COMPILER_ID MATCHES "GNU")
target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:C>:DYNAMIC_ALLOCATION>)
endif ()
target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:C>:DYNAMIC_ALLOCATION>)
target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:C>:MAXNC=600>)
target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:C>:MXNAF=3>)
target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:C>:UNDERSCORE>)

if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:DYNAMIC_ALLOCATION>)
endif ()

target_compile_definitions (${this} PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:DYNAMIC_ALLOCATION>)

0 comments on commit e031efd

Please sign in to comment.