Commit 30b50ba8 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: don't use DYLD_LIBRARY_PATH

parent 50c25a25
......@@ -75,7 +75,7 @@ else()
INSTALL_DIR ${SB_INSTALL_PREFIX}
CONFIGURE_COMMAND
# use 'env' because CTest launcher doesn't perform shell interpretation
env ${LDLIBVAR}=${SB_INSTALL_PREFIX}/lib
${SB_ENV_CONFIGURE_CMD}
${GEOTIFF_SB_BUILD_DIR}/configure
--prefix=${SB_INSTALL_PREFIX}
--enable-static=no
......
......@@ -58,7 +58,7 @@ else()
INSTALL_DIR ${SB_INSTALL_PREFIX}
CONFIGURE_COMMAND
# use 'env' because CTest launcher doesn't perform shell interpretation
env ${LDLIBVAR}=${SB_INSTALL_PREFIX}/lib
${SB_ENV_CONFIGURE_CMD}
${PROJ_SB_BUILD_DIR}/configure
--prefix=${SB_INSTALL_PREFIX}
--enable-static=no
......
......@@ -44,11 +44,12 @@ else(UNIX)
if(APPLE)
set(LDLIBVAR DYLD_LIBRARY_PATH)
set(SB_ENV_CONFIGURE_CMD)
set(SB_CMAKE_COMMAND ${CMAKE_COMMAND})
else()
set(LDLIBVAR LD_LIBRARY_PATH)
set(SB_ENV_CONFIGURE_CMD "env ${LDLIBVAR}=${SB_INSTALL_PREFIX}/lib")
set(SB_CMAKE_COMMAND env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_COMMAND})
endif()
set(SB_CMAKE_COMMAND env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_COMMAND})
endif()
# Call external projects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment