diff --git a/unitTesting/CMakeLists.txt b/unitTesting/CMakeLists.txt index cee7fe3e2e24e6c52bb10bcd2881297edc9f6873..74327c1e8d0120be484aed8d1ce0ed2605226dad 100644 --- a/unitTesting/CMakeLists.txt +++ b/unitTesting/CMakeLists.txt @@ -69,8 +69,9 @@ FOREACH(test ${tests}) ${samplemodelpath} sample.wrl ${samplespec} ${sampleljr} ) IF (UNIX) + SET(EXTRA_LD_LIBRARY_PATH $ENV{LD_LIBRARY_PATH}) SET_PROPERTY(TEST ${test} PROPERTY - ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_BINARY_DIR}/src:${BOOST_ROOT}/lib") + ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_BINARY_DIR}/src:${BOOST_ROOT}/lib:${EXTRA_LD_LIBRARY_PATH}") ENDIF(UNIX) ENDFOREACH(test)