Skip to content

Commit

Permalink
properly dealing with ncint_mod.F90 in cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 19, 2020
1 parent 78dd092 commit e57c5aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/flib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ set (PIO_Fortran_MODS ${CMAKE_CURRENT_BINARY_DIR}/pio.mod
${CMAKE_CURRENT_BINARY_DIR}/pionfatt_mod.mod
${CMAKE_CURRENT_BINARY_DIR}/pionfput_mod.mod)

if (NETCDF_INTEGRATION)
set (PIO_Fortran_SRCS ${PIO_Fortran_SRCS} ncint_mod.F90)
set (PIO_Fortran_MODS ${PIO_Fortran_MODS} ${CMAKE_CURRENT_BINARY_DIR}/ncint_mod.mod)
endif ()

add_library (piof ${PIO_Fortran_SRCS} ${PIO_GenF90_SRCS})
if (NOT PIO_ENABLE_FORTRAN)
set_target_properties(piof PROPERTIES EXCLUDE_FROM_ALL TRUE)
Expand Down

0 comments on commit e57c5aa

Please sign in to comment.