Skip to content

Commit

Permalink
Merge pull request #19 from GEOS-ESM/feature/mathomp4/use-py2-py3-sam…
Browse files Browse the repository at this point in the history
…e-time

Updates to use Python2 and Python3 at same time
  • Loading branch information
tclune authored May 4, 2021
2 parents 4a549e2 + 40b0da3 commit c5ba76f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions UMD_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ foreach (file ocean_recenter anaice2rst ocean_moments ocean_iau)
)
endforeach ()

if (F2PY_FOUND)
add_f2py_module(read_merra2_bcs
SOURCES read_bin.f90
DESTINATION bin
INCLUDEDIRS ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR}/lib ${include_${this}}
)
add_dependencies(read_merra2_bcs ${this})
endif (F2PY_FOUND)
if (USE_F2PY)
find_package(F2PY2)
if (F2PY2_FOUND)
esma_add_f2py2_module(read_merra2_bcs
SOURCES read_bin.f90
DESTINATION bin
INCLUDEDIRS ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR}/lib ${include_${this}}
)
add_dependencies(read_merra2_bcs ${this})
endif ()
endif ()

file (GLOB python_files CONFIGURE_DEPENDS *.py)
install(
Expand Down

0 comments on commit c5ba76f

Please sign in to comment.