Always add share/scm to GUILE_LOAD_PATH

Any scm file that will be built may need access to other scheme files that may have
been linked into that directory. As it was only scm files that would be linked
themselves would also be built with the search path set, causing other linked files
not to be found for an scm file that doesn't add a link for itself.
This commit is contained in:
Geert Janssens 2019-06-08 16:18:08 +02:00
parent 9ec5eab714
commit 8aa696223b

View File

@ -90,9 +90,7 @@ function(make_scheme_targets _TARGET _SOURCE_FILES _OUTPUT_DIR _GUILE_DEPENDS
list(APPEND _GUILE_LOAD_COMPILED_PATH ${guile_load_compiled_path}) list(APPEND _GUILE_LOAD_COMPILED_PATH ${guile_load_compiled_path})
endif() endif()
set(_GUILE_CACHE_DIR ${LIBDIR_BUILD}/gnucash/scm/ccache/${GUILE_EFFECTIVE_VERSION}) set(_GUILE_CACHE_DIR ${LIBDIR_BUILD}/gnucash/scm/ccache/${GUILE_EFFECTIVE_VERSION})
if (MAKE_LINKS) list(APPEND _GUILE_LOAD_PATH "${build_datadir}/gnucash/scm")
list(APPEND _GUILE_LOAD_PATH "${build_datadir}/gnucash/scm")
endif()
list(APPEND _GUILE_LOAD_COMPILED_PATH ${build_libdir}/gnucash/scm/ccache/${GUILE_EFFECTIVE_VERSION}) list(APPEND _GUILE_LOAD_COMPILED_PATH ${build_libdir}/gnucash/scm/ccache/${GUILE_EFFECTIVE_VERSION})
set(_TARGET_FILES "") set(_TARGET_FILES "")