Skip to content

Commit

Permalink
Made the test build against the build directory set CMAKE_PREFIX_PATH…
Browse files Browse the repository at this point in the history
… correctly.

So that headers/libraries in the build directory could be found
correctly.
  • Loading branch information
krasznaa authored and dpiparo committed Sep 29, 2023
1 parent 5473c5c commit 62dcea6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -449,13 +449,15 @@ 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
COMMAND
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()
Expand Down

0 comments on commit 62dcea6

Please sign in to comment.