Commit dc5d1100 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: issues with DYLD_LIBRARY_PATH on MacOSX

parent 80f8ee99
......@@ -54,7 +54,7 @@ else()
PATCH_COMMAND ${CMAKE_COMMAND} -E touch ${GDAL_SB_SRC}/config.rpath
CONFIGURE_COMMAND
# use 'env' because CTest launcher doesn't perform shell interpretation
env ${LDLIBVAR}=${SB_INSTALL_PREFIX}/lib
${SB_ENV_CONFIGURE_CMD}
${GDAL_SB_BUILD_DIR}/configure
--prefix=${SB_INSTALL_PREFIX}
--enable-static=no
......
......@@ -73,7 +73,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}
${TIFF_SB_BUILD_DIR}/configure
--prefix=${SB_INSTALL_PREFIX}
--enable-static=no
......
......@@ -43,8 +43,10 @@ if(WIN32)
else(UNIX)
if(APPLE)
set(LDLIBVAR DYLD_LIBRARY_PATH)
set(SB_ENV_CONFIGURE_CMD)
else()
set(LDLIBVAR LD_LIBRARY_PATH)
set(SB_ENV_CONFIGURE_CMD "env ${LDLIBVAR}=${SB_INSTALL_PREFIX}/lib")
endif()
set(SB_CMAKE_COMMAND env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_COMMAND})
endif()
......
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