From 4951550febbb49cb9ebae4f32130658b2089a9c9 Mon Sep 17 00:00:00 2001 From: Anthony Islas Date: Thu, 12 Jun 2025 14:40:45 -0700 Subject: [PATCH] Add _UNGRIB compile definition to ungrib/ targets --- ungrib/CMakeLists.txt | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/ungrib/CMakeLists.txt b/ungrib/CMakeLists.txt index 698ada2d..baafa375 100644 --- a/ungrib/CMakeLists.txt +++ b/ungrib/CMakeLists.txt @@ -6,35 +6,12 @@ add_library ( pgu ) add_subdirectory( src ) set_target_properties( - pgu - PROPERTIES - # Just dump everything in here - Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/modules/ungrib/ - Fortran_FORMAT FREE - ) - -set_target_properties( - ungrib - PROPERTIES - # Just dump everything in here - Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/modules/ungrib/ - Fortran_FORMAT FREE - ) - -set_target_properties( - g1print - PROPERTIES - # Just dump everything in here - Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/modules/ungrib/ - Fortran_FORMAT FREE - ) - -set_target_properties( - g2print + ungrib g1print g2print pgu PROPERTIES # Just dump everything in here Fortran_MODULE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/modules/ungrib/ Fortran_FORMAT FREE + COMPILE_DEFINITIONS _UNGRIB ) # Control dependencies and linking