Skip to content

Commit

Permalink
Merge pull request #15 from GEOS-ESM/feature/wjiang/turn_on_build_sha…
Browse files Browse the repository at this point in the history
…red_libs

add dependencies to turn on BUILD_SHARED_LIBS
  • Loading branch information
mathomp4 authored Nov 19, 2020
2 parents 8ebbe6a + 8f15d8c commit 6719c5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NCEP_bufr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,7 @@ 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 ()

2 changes: 1 addition & 1 deletion NCEP_w3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ endif ()
ecbuild_add_executable(
TARGET ndate_${precision}.x
SOURCES ndate.f
LIBS NCEP_w3_${precision}
LIBS NCEP_w3_${precision} NCEP_bufr_${precision} NCEP_bacio_${precision}
)


0 comments on commit 6719c5b

Please sign in to comment.