Skip to content

Commit 31b4b7d

Browse files
committed
fix(tests): Pass down $LD_LIBRARY_PATH
fix #1542 Co-authored-by: @YanzhaoW
1 parent 21930e1 commit 31b4b7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/private/FairRootTargets.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ function(fairroot_discover_catch2_tests target)
6767
set(req_version 3.22)
6868
if(ARGS_ENABLE_LD_LIBRARY_PATH_WORKAROUND)
6969
set(dl_paths ${LD_LIBRARY_PATH})
70+
if(DEFINED ENV{LD_LIBRARY_PATH})
71+
list(APPEND dl_paths $ENV{LD_LIBRARY_PATH})
72+
endif()
7073
endif()
7174

7275
if(dl_paths)

0 commit comments

Comments
 (0)