From 61b14883c1ddbd5985c681ef7b559cf3c8c15525 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 26 Mar 2025 20:47:05 -0600 Subject: cmake: Fuss with include_directories for tests --- libcr_ipc/CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libcr_ipc') diff --git a/libcr_ipc/CMakeLists.txt b/libcr_ipc/CMakeLists.txt index 4590bdd..3746584 100644 --- a/libcr_ipc/CMakeLists.txt +++ b/libcr_ipc/CMakeLists.txt @@ -21,9 +21,6 @@ set(ipc_tests rpc sema ) -if (ENABLE_TESTS) - foreach(test IN LISTS ipc_tests) - add_lib_test(libcr_ipc "test_${test}") - target_include_directories("test_${test}" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/tests) - endforeach() -endif() +foreach(test IN LISTS ipc_tests) + add_lib_test(libcr_ipc "test_${test}") +endforeach() -- cgit v1.2.3-2-g168b