From e4f988e2f0ee77c7507aeb30733411073fac82e4 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 16 Sep 2024 17:30:54 +0200 Subject: [PATCH] Use PROJECT_BINARY_DIR instead of CMAKE_BINARY_DIR to always locate the test files. --- test/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 264780c36..4cd539166 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -22,14 +22,14 @@ set_tests_properties(create_complete_file_rntuple PROPERTIES SKIP_REGULAR_EXPRESSION "The RNTuple writer from podio is not available but was requested" ) -add_test(NAME check_complete_file COMMAND pytest --inputfile=${CMAKE_BINARY_DIR}/test/edm4hep_example.root -v) +add_test(NAME check_complete_file COMMAND pytest --inputfile=${PROJECT_BINARY_DIR}/test/edm4hep_example.root -v) set_test_env(check_complete_file) set_tests_properties( check_complete_file PROPERTIES DEPENDS create_complete_file ) -add_test(NAME check_complete_file_rntuple COMMAND pytest --inputfile=${CMAKE_BINARY_DIR}/test/edm4hep_example_rntuple.root -v) +add_test(NAME check_complete_file_rntuple COMMAND pytest --inputfile=${PROJECT_BINARY_DIR}/test/edm4hep_example_rntuple.root -v) set_test_env(check_complete_file_rntuple) set_tests_properties( check_complete_file_rntuple