Commit 88e92efa authored by Rashad Kanavath's avatar Rashad Kanavath

SuperBuild: update SB_ENV_CONFIGURE_CMD

parent 48bfa87f
......@@ -110,8 +110,11 @@ else(UNIX)
set(SB_CMAKE_COMMAND ${CMAKE_COMMAND} ${OSX_CMAKE_OPTS})
set(SB_ENV_CONFIGURE_CMD env CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER})
else()
set(LDLIBVAR LD_LIBRARY_PATH)
set(SB_ENV_CONFIGURE_CMD env ${LDLIBVAR}=${SB_INSTALL_PREFIX}/lib:$ENV{${LDLIBVAR}} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER})
set(sb_ld_library_path "${SB_INSTALL_PREFIX}/lib")
if(DEFINED $ENV{LD_LIBRARY_PATH})
set(sb_ld_library_path "${sb_ld_library_path}:$ENV{LD_LIBRARY_PATH}")
endif()
set(SB_ENV_CONFIGURE_CMD "LD_LIBRARY_PATH=${sb_ld_library_path};CC=${CMAKE_C_COMPILER};CXX=${CMAKE_CXX_COMPILER}")
set(SB_CMAKE_COMMAND env ${LDLIBVAR}=${CMAKE_INSTALL_PREFIX}/lib:$ENV{${LDLIBVAR}} CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${CMAKE_COMMAND})
message(STATUS "Environment setup for Configure : ${SB_ENV_CONFIGURE_CMD}")
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