Fix for successfully reading external library environment variables #7
@ -915,7 +915,7 @@ if(WIN32)
|
|||||||
set(PLATFORM_LIB_INSTALL_DIR ".")
|
set(PLATFORM_LIB_INSTALL_DIR ".")
|
||||||
# Environment variables to run precompiled executables that needed libraries.
|
# Environment variables to run precompiled executables that needed libraries.
|
||||||
list(JOIN PLATFORM_BUNDLED_LIBRARY_DIRS "\;" _library_paths)
|
list(JOIN PLATFORM_BUNDLED_LIBRARY_DIRS "\;" _library_paths)
|
||||||
set(PLATFORM_ENV_BUILD_DIRS "${_library_paths}\;${PATH}")
|
set(PLATFORM_ENV_BUILD_DIRS "${_library_paths}\;$ENV{PATH}")
|
||||||
set(PLATFORM_ENV_BUILD "PATH=${PLATFORM_ENV_BUILD_DIRS}")
|
set(PLATFORM_ENV_BUILD "PATH=${PLATFORM_ENV_BUILD_DIRS}")
|
||||||
unset(_library_paths)
|
unset(_library_paths)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
@ -930,7 +930,7 @@ elseif(APPLE)
|
|||||||
|
|
||||||
# Environment variables to run precompiled executables that needed libraries.
|
# Environment variables to run precompiled executables that needed libraries.
|
||||||
list(JOIN PLATFORM_BUNDLED_LIBRARY_DIRS ":" _library_paths)
|
list(JOIN PLATFORM_BUNDLED_LIBRARY_DIRS ":" _library_paths)
|
||||||
set(PLATFORM_ENV_BUILD "DYLD_LIBRARY_PATH=\"${_library_paths};${DYLD_LIBRARY_PATH}\"")
|
set(PLATFORM_ENV_BUILD "DYLD_LIBRARY_PATH=\"${_library_paths};$ENV{DYLD_LIBRARY_PATH}\"")
|
||||||
unset(_library_paths)
|
unset(_library_paths)
|
||||||
elseif(UNIX)
|
elseif(UNIX)
|
||||||
set(PLATFORM_LIB_INSTALL_DIR "lib")
|
set(PLATFORM_LIB_INSTALL_DIR "lib")
|
||||||
@ -944,6 +944,6 @@ elseif(UNIX)
|
|||||||
|
|
||||||
# Environment variables to run precompiled executables that needed libraries.
|
# Environment variables to run precompiled executables that needed libraries.
|
||||||
list(JOIN PLATFORM_BUNDLED_LIBRARY_DIRS ":" _library_paths)
|
list(JOIN PLATFORM_BUNDLED_LIBRARY_DIRS ":" _library_paths)
|
||||||
set(PLATFORM_ENV_BUILD "LD_LIBRARY_PATH=\"${_library_paths}:${LD_LIBRARY_PATH}\"")
|
set(PLATFORM_ENV_BUILD "LD_LIBRARY_PATH=\"${_library_paths}:$ENV{LD_LIBRARY_PATH}\"")
|
||||||
unset(_library_paths)
|
unset(_library_paths)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user