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

ENH: superbuild: add DYLD for OTB

parent 64a1dc6f
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,17 @@ else() ...@@ -123,6 +123,17 @@ else()
) )
endif() endif()
# issue with APPLE : the DYLD_LIBRARY_PATH is disabled everywhere but it is
# necessary here
if(APPLE)
set(OTB_SB_CMAKE_COMMAND
env
${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib:$ENV{${LDLIBVAR}}
${CMAKE_COMMAND})
else()
set(OTB_SB_CMAKE_COMMAND ${SB_CMAKE_COMMAND})
endif()
ExternalProject_Add(${proj} ExternalProject_Add(${proj}
DEPENDS ${${proj}_DEPENDENCIES} DEPENDS ${${proj}_DEPENDENCIES}
PREFIX ${proj} PREFIX ${proj}
...@@ -154,7 +165,7 @@ ExternalProject_Add(${proj} ...@@ -154,7 +165,7 @@ ExternalProject_Add(${proj}
-DOTB_WRAP_PYTHON:BOOL=${OTB_WRAP_PYTHON} -DOTB_WRAP_PYTHON:BOOL=${OTB_WRAP_PYTHON}
-DOTB_WRAP_JAVA:BOOL=${OTB_WRAP_JAVA} -DOTB_WRAP_JAVA:BOOL=${OTB_WRAP_JAVA}
${OTB_ADDITIONAL_CACHE} ${OTB_ADDITIONAL_CACHE}
CMAKE_COMMAND ${SB_CMAKE_COMMAND} CMAKE_COMMAND ${OTB_SB_CMAKE_COMMAND}
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment