Skip to content

Commit

Permalink
Undo changes to cmake test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 12, 2023
1 parent 1a04d1a commit 0bd2cdb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmake/podioTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
function(PODIO_SET_TEST_ENV test)
# We need to convert this into a list of arguments that can be used as environment variable
list(JOIN PODIO_IO_HANDLERS " " IO_HANDLERS)
set(test_environment
LD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/tests:${PROJECT_BINARY_DIR}/src:$<TARGET_FILE_DIR:ROOT::Tree>:$<$<TARGET_EXISTS:SIO::sio>:$<TARGET_FILE_DIR:SIO::sio>>:$ENV{LD_LIBRARY_PATH}
set_property(TEST ${test}
PROPERTY ENVIRONMENT
LD_LIBRARY_PATH=${PROJECT_BINARY_DIR}/tests:${PROJECT_BINARY_DIR}/src:$<TARGET_FILE_DIR:ROOT::Tree>:$<$<TARGET_EXISTS:SIO::sio>:$<TARGET_FILE_DIR:SIO::sio>>:$ENV{LD_LIBRARY_PATH}
PYTHONPATH=${PROJECT_SOURCE_DIR}/python:$ENV{PYTHONPATH}
PODIO_SIOBLOCK_PATH=${PROJECT_BINARY_DIR}/tests
ROOT_INCLUDE_PATH=${PROJECT_BINARY_DIR}/tests/datamodel:${PROJECT_SOURCE_DIR}/include
Expand All @@ -15,9 +16,6 @@ function(PODIO_SET_TEST_ENV test)
ENABLE_SIO=${ENABLE_SIO}
PODIO_BUILD_BASE=${PROJECT_BINARY_DIR}
)
set_property(TEST ${test}
PROPERTY ENVIRONMENT "${test_environment}"
)
endfunction()

#--- small utility helper function to allow for a more terse definition of tests below
Expand Down

0 comments on commit 0bd2cdb

Please sign in to comment.