Skip to content

Commit

Permalink
Do not add MAPL twice
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Jul 29, 2024
1 parent bfa278c commit a9e739d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ESMF/Shared/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ if( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/@GSW )
set (gsw_ECBUILD_SYSTEM_INCLUDED TRUE)
endif()

if ( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/MAPL@ )
esma_add_subdirectories (
MAPL
)
if (NOT TARGET MAPL)
if ( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/MAPL@ )
esma_add_subdirectories (
MAPL
)
endif ()
endif ()

if ( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/GMAO_Shared@ )
Expand Down

0 comments on commit a9e739d

Please sign in to comment.