Skip to content

Commit

Permalink
Merge pull request NCAR#488 from scrasmussen/bugfix/cmake_mpi_f08
Browse files Browse the repository at this point in the history
bugfix: CMake build missing mpi_f08 module paths
  • Loading branch information
grantfirl committed Jul 1, 2024
2 parents 337d1d2 + 9cfacdb commit f9dbf4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ find_package(NetCDF REQUIRED COMPONENTS C Fortran)
find_package(bacio REQUIRED)
find_package(sp REQUIRED)
find_package(w3emc REQUIRED)
find_package(MPI REQUIRED)
if(NOT MPI_Fortran_HAVE_F08_MODULE)
message(FATAL_ERROR "MPI_F08 Required")
endif()

SET(CCPP_FRAMEWORK_SRC ${CMAKE_SOURCE_DIR}/../../ccpp/framework)
SET(CCPP_PHYSICS_SRC ${CMAKE_SOURCE_DIR}/../../ccpp/physics)
Expand All @@ -90,6 +94,7 @@ endif()

INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/ccpp/framework/src)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}/ccpp/physics)
include_directories(${MPI_Fortran_INCLUDE_PATH})

#------------------------------------------------------------------------------
# Add required preprocessor flags for build type
Expand Down

0 comments on commit f9dbf4f

Please sign in to comment.