From 62dcea6f0ca0d7ef6e3a9fbb557cdfdbf11169d5 Mon Sep 17 00:00:00 2001 From: Attila Krasznahorkay Date: Thu, 8 Dec 2022 10:28:55 +0100 Subject: [PATCH] Made the test build against the build directory set CMAKE_PREFIX_PATH correctly. So that headers/libraries in the build directory could be found correctly. --- test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index a0786c828dfa9..47bcdfd76c605 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. +# Copyright (C) 1995-2022, Rene Brun and Fons Rademakers. # All rights reserved. # # For the licensing terms see $ROOTSYS/LICENSE. @@ -449,6 +449,7 @@ if (NOT cxxmodules) ROOT_ADD_TEST(test-periodic-build COMMAND ${CMAKE_CTEST_COMMAND} ${build_generator_args} --build-and-test ${CMAKE_CURRENT_SOURCE_DIR}/periodic periodic-build + --build-options -DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR} ) else() ROOT_ADD_TEST(test-periodic-build @@ -456,6 +457,7 @@ if (NOT cxxmodules) env CC=${CMAKE_C_COMPILER} CXX=${CMAKE_CXX_COMPILER} ${CMAKE_CTEST_COMMAND} --build-generator ${CMAKE_GENERATOR} --build-and-test ${CMAKE_CURRENT_SOURCE_DIR}/periodic periodic-build + --build-options -DCMAKE_PREFIX_PATH=${CMAKE_BINARY_DIR} ) endif() endif()