Skip to content
Snippets Groups Projects
Commit 30b50ba8 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: don't use DYLD_LIBRARY_PATH

parent 50c25a25
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment