Skip to content

Commit

Permalink
skip root path when locating FABM and STIM (needed when cross-compili…
Browse files Browse the repository at this point in the history
…ng as with conda build)
  • Loading branch information
jornbr committed Oct 7, 2023
1 parent 7b8e8b6 commit b64b1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if(GOTM_USE_FABM)
find_package(fabm REQUIRED CONFIG HINTS "${FABM_PREFIX}" NO_DEFAULT_PATH)
mark_as_advanced(CLEAR FABM_PREFIX)
else()
find_path(FABM_BASE src/fabm.F90 HINTS ${CMAKE_CURRENT_LIST_DIR}/extern/fabm DOC "Path to FABM source directory.")
find_path(FABM_BASE src/fabm.F90 HINTS ${CMAKE_CURRENT_LIST_DIR}/extern/fabm DOC "Path to FABM source directory." NO_CMAKE_FIND_ROOT_PATH)
set(FABM_EMBED_VERSION ${GOTM_EMBED_VERSION} CACHE BOOL "Embed FABM version information" FORCE)
set(FABM_FORCED_HOST gotm)
add_subdirectory("${FABM_BASE}" extern/fabm)
Expand All @@ -91,7 +91,7 @@ endif(GOTM_USE_FABM)

if(GOTM_USE_STIM)
mark_as_advanced(FORCE STIM_BASE STIM_EMBED_VERSION)
find_path(STIM_BASE src/stim_version.F90.in HINTS ${CMAKE_CURRENT_LIST_DIR}/extern/stim DOC "Path to STIM source directory.")
find_path(STIM_BASE src/stim_version.F90.in HINTS ${CMAKE_CURRENT_LIST_DIR}/extern/stim DOC "Path to STIM source directory." NO_CMAKE_FIND_ROOT_PATH)
set(STIM_EMBED_VERSION ${GOTM_EMBED_VERSION} CACHE BOOL "Embed STIM version information" FORCE)
add_subdirectory("${STIM_BASE}" extern/stim)
mark_as_advanced(CLEAR STIM_BASE)
Expand Down

0 comments on commit b64b1df

Please sign in to comment.