Commit 0148ffe0 authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: use DYLD_LIBRARY_PATH on MacOS

parent 90407ce1
......@@ -130,7 +130,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 LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib
env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib
${GDAL_SB_BUILD_DIR}/configure
--prefix=${CMAKE_INSTALL_PREFIX}
--enable-static=no
......
......@@ -109,7 +109,7 @@ else()
INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
CONFIGURE_COMMAND
# use 'env' because CTest launcher doesn't perform shell interpretation
env LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib
env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib
${GEOTIFF_SB_BUILD_DIR}/configure
--prefix=${CMAKE_INSTALL_PREFIX}
--enable-static=no
......
......@@ -72,7 +72,7 @@ else()
INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
CONFIGURE_COMMAND
# use 'env' because CTest launcher doesn't perform shell interpretation
env LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib
env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib
${TIFF_SB_BUILD_DIR}/configure
--prefix=${CMAKE_INSTALL_PREFIX}
--enable-static=no
......
......@@ -58,7 +58,7 @@ else()
INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
CONFIGURE_COMMAND
# use 'env' because CTest launcher doesn't perform shell interpretation
env LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib
env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib
${PROJ_SB_BUILD_DIR}/configure
--prefix=${CMAKE_INSTALL_PREFIX}
--enable-static=no
......@@ -75,4 +75,4 @@ else()
endif()
message(STATUS " Using Proj4 SuperBuild version")
endif()
\ No newline at end of file
endif()
......@@ -23,6 +23,12 @@ if(WIN32)
set(SB_CMAKE_COMMAND ${CMAKE_COMMAND})
endif()
else(UNIX)
if(APPLE)
set(LDLIB DYLD_LIBRARY_PATH)
else()
set(LDLIB LD_LIBRARY_PATH)
endif()
set(SB_CMAKE_COMMAND env LD_LIBRARY_PATH=${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