Skip to content

Commit

Permalink
[cmake] Unix: Remove the setting of LD_LIBRARY_PATH when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Dec 2, 2024
1 parent 8e78c97 commit aa844e8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cmake/Helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@ function(alicevision_add_test test_file)
if(UNIX)
# setup LD_LIBRARY_PATH for running tests
get_property(TEST_LINK_DIRS TARGET ${TEST_EXECUTABLE_NAME} PROPERTY LINK_DIRECTORIES)

set_property(TEST test_${TEST_EXECUTABLE_NAME} PROPERTY ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:${TEST_LINK_DIRS}:$ENV{LD_LIBRARY_PATH}")
endif()

if (WIN32)
Expand Down

0 comments on commit aa844e8

Please sign in to comment.