From 4b28590f66b3c788864e41ad11164bc45d7e0349 Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Thu, 28 Nov 2024 12:45:32 +0100 Subject: [PATCH] Use CMAKE_CURRENT_SOURCE_DIR instead of PROJECT_SOURCE_DIR This should help building the unit tests against installed lib --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 90c48e4..5f9639c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -65,7 +65,7 @@ if(GTEST_FOUND) set(TEST_TARGET_NAME util_caching-gtest-${TEST_TARGET_NAME}) message(STATUS - "Adding gtest unittest \"${TEST_TARGET_NAME}\" with working dir ${PROJECT_SOURCE_DIR}/${TEST_FOLDER} \n _test: ${_test}" + "Adding gtest unittest \"${TEST_TARGET_NAME}\" with working dir ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FOLDER} \n _test: ${_test}" ) add_executable(${TEST_TARGET_NAME} ${_test})