From ebe1d4ba438ffd72329b1b50052bc797917208db Mon Sep 17 00:00:00 2001 From: Kevin Gliewe Date: Wed, 10 Jan 2024 14:56:53 +0100 Subject: [PATCH] Use full path to include 'tests' directory (#4769) --- rerun_cpp/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rerun_cpp/CMakeLists.txt b/rerun_cpp/CMakeLists.txt index f6631549b2ce..1d40a2a10681 100644 --- a/rerun_cpp/CMakeLists.txt +++ b/rerun_cpp/CMakeLists.txt @@ -186,6 +186,6 @@ install(FILES # ----------------------------------------------------------------------------- # Add tests if they exist (they are not part of the distribution zip). # Has direct dependency to arrow, so needs to happen last. -if(EXISTS tests) - add_subdirectory(tests) +if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tests) + add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests) endif()