From 9473d1260d7742fe8c8fdeab01688e4cc102f3ef Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 26 Feb 2021 19:36:07 +0530 Subject: Set CPATH and LIBRARY_PATH in pre-inst-env wrapper. This is so that someone compiling and running C programs against libnsmc can do so easily. * pre-inst-env.in: Set CPATH and LIBRARY_PATH. --- pre-inst-env.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pre-inst-env.in b/pre-inst-env.in index 2f0dfed..9e0a1e2 100755 --- a/pre-inst-env.in +++ b/pre-inst-env.in @@ -4,4 +4,7 @@ export GUILE_LOAD_PATH="@CMAKE_BINARY_DIR@/scm${GUILE_LOAD_PATH:+:}${GUILE_LOAD_ export GUILE_LOAD_COMPILED_PATH="@CMAKE_BINARY_DIR@/scm${GUILE_LOAD_COMPILED_PATH:+:}${GUILE_LOAD_COMPILED_PATH}" export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}" +export CPATH="@CMAKE_SOURCE_DIR@/include${CPATH:+:}${CPATH}" +export LIBRARY_PATH="@CMAKE_BINARY_DIR@${LIBRARY_PATH:+:}${LIBRARY_PATH}" + exec "$@" -- cgit v1.2.3