Skip to content

Commit 71897d8

Browse files
committed
skip root path when locating FABM and STIM (needed when cross-compiling as with conda build)
1 parent ab6ed4c commit 71897d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if(GOTM_USE_FABM)
7474
find_package(fabm REQUIRED CONFIG HINTS "${FABM_PREFIX}" NO_DEFAULT_PATH)
7575
mark_as_advanced(CLEAR FABM_PREFIX)
7676
else()
77-
find_path(FABM_BASE src/fabm.F90 HINTS ${CMAKE_CURRENT_LIST_DIR}/extern/fabm DOC "Path to FABM source directory.")
77+
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)
7878
set(FABM_EMBED_VERSION ${GOTM_EMBED_VERSION} CACHE BOOL "Embed FABM version information" FORCE)
7979
set(FABM_FORCED_HOST gotm)
8080
add_subdirectory("${FABM_BASE}" extern/fabm)
@@ -84,7 +84,7 @@ endif(GOTM_USE_FABM)
8484

8585
if(GOTM_USE_STIM)
8686
mark_as_advanced(FORCE STIM_BASE STIM_EMBED_VERSION)
87-
find_path(STIM_BASE src/stim_version.F90.in HINTS ${CMAKE_CURRENT_LIST_DIR}/extern/stim DOC "Path to STIM source directory.")
87+
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)
8888
set(STIM_EMBED_VERSION ${GOTM_EMBED_VERSION} CACHE BOOL "Embed STIM version information" FORCE)
8989
add_subdirectory("${STIM_BASE}" extern/stim)
9090
mark_as_advanced(CLEAR STIM_BASE)

0 commit comments

Comments
 (0)