Skip to content

Commit

Permalink
fix(tests): Pass down $LD_LIBRARY_PATH
Browse files Browse the repository at this point in the history
fix #1542

Co-authored-by: @YanzhaoW
  • Loading branch information
dennisklein committed May 29, 2024
1 parent 21930e1 commit 31b4b7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/private/FairRootTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function(fairroot_discover_catch2_tests target)
set(req_version 3.22)
if(ARGS_ENABLE_LD_LIBRARY_PATH_WORKAROUND)
set(dl_paths ${LD_LIBRARY_PATH})
if(DEFINED ENV{LD_LIBRARY_PATH})
list(APPEND dl_paths $ENV{LD_LIBRARY_PATH})
endif()
endif()

if(dl_paths)
Expand Down

0 comments on commit 31b4b7d

Please sign in to comment.