Skip to content

Commit

Permalink
Some minor fixes. Add find MCT to find module for csm_share
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Sep 28, 2023
1 parent fbdfc20 commit ac40a2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion components/cmake/modules/FindCsmShare.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# own find module.
#
# This can be controlled by setting the CsmShare_DIR (or, equivalently, the
# CsmShare_ROOT environment variable)
# csm_share_ROOT environment variable)
#
# Once done, this will define:
#
Expand All @@ -22,6 +22,11 @@ set(CSM_SHARE "${INSTALL_SHAREDPATH}/${COMP_INTERFACE}/${ESMFDIR}/${NINST_VALUE}
# Look for libcsm_share in the complex path we built above
find_library(CSM_SHARE_LIB csm_share REQUIRED PATHS ${CSM_SHARE})

# Grab mct if we don't already have it
if (NOT TARGET mct)
find_package(MCT REQUIRED)
endif()

# Create the interface library, and set target properties
add_library (csm_share INTERFACE)
target_link_libraries (csm_share INTERFACE ${CSM_SHARE_LIB};mct;${PIOLIBS})
Expand Down
2 changes: 1 addition & 1 deletion components/cmake/modules/FindMCT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# own find module.
#
# This can be controlled by setting the MCT_DIR (or, equivalently, the
# MCT_ROOT environment variable)
# mct_ROOT environment variable)
#
# Once done, this will define:
#
Expand Down

0 comments on commit ac40a2c

Please sign in to comment.