From f8a7296f451223f2e3498eafa6fae4059d4ce898 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Mon, 6 Jan 2025 16:31:58 +0100 Subject: [PATCH] Use DL_PATHS again for correct test discovery env Not sure why but this has become necessary again for running on Ubuntu24 in an LCG/dev3 environment to run test discovery succesfully. Otherwise the environment for discovery is not set properly and running the executable (during the build stage) fails with a symbol lookup error. The latter is caused by the fact that, LCGs podio is not built with SIO support. --- tests/unittests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unittests/CMakeLists.txt b/tests/unittests/CMakeLists.txt index b2a1a5a1d..4ae8eb336 100644 --- a/tests/unittests/CMakeLists.txt +++ b/tests/unittests/CMakeLists.txt @@ -78,6 +78,7 @@ else() WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} TEST_PREFIX "UT_" # make it possible to filter easily with -R ^UT TEST_SPEC ${filter_tests} # discover only tests that are known to not fail + DL_PATHS ${CMAKE_CURRENT_BINARY_DIR}:${PROJECT_BINARY_DIR}/src:${PROJECT_BINARY_DIR}/tests:$:$<$:$>:$ENV{LD_LIBRARY_PATH} PROPERTIES ENVIRONMENT PODIO_SIOBLOCK_PATH=${PROJECT_BINARY_DIR}/tests