Skip to content

Commit 8e535ed

Browse files
author
Matevz Morato
committed
Link spdlog to test deps
1 parent 91f58e1 commit 8e535ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ function(dai_add_test test_name test_src)
5050
endif()
5151

5252
# Link to core and Catch2 testing framework
53+
set(DEPTHAI_TARGET depthai::core)
5354
if(NOT DEPTHAI_MERGED_TARGET)
54-
target_link_libraries(${test_name} PRIVATE depthai::opencv ${OpenCV_LIBS} Catch2::Catch2WithMain Threads::Threads)
55-
else()
56-
target_link_libraries(${test_name} PRIVATE depthai::core ${OpenCV_LIBS} Catch2::Catch2WithMain Threads::Threads)
55+
set(DEPTHAI_TARGET depthai::opencv)
5756
endif()
57+
target_link_libraries(${test_name} PRIVATE depthai::opencv ${OpenCV_LIBS} Catch2::Catch2WithMain Threads::Threads spdlog::spdlog)
5858

5959
# Add sanitizers for tests as well
6060
if(COMMAND add_sanitizers)

0 commit comments

Comments
 (0)