Commit c3fa0992 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

cmake/tests: fix #162

parent 2bc25ab7
Pipeline #20088 failed with stage
in 3 minutes and 57 seconds
Subproject commit ee7a773c5c23f83dd21eb0ccfa96277e068b0456 Subproject commit 7c6837de72c724329c93a1d4f107767240d58727
...@@ -42,7 +42,7 @@ find_library(RT_LIB rt) ...@@ -42,7 +42,7 @@ find_library(RT_LIB rt)
MACRO(ADD_TESTCASE NAME) MACRO(ADD_TESTCASE NAME)
ADD_UNIT_TEST(${NAME} ${NAME}.cc) ADD_UNIT_TEST(${NAME} ${NAME}.cc)
TARGET_LINK_LIBRARIES(${NAME} PRIVATE Boost::unit_test_framework) TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${PROJECT_NAME} Boost::unit_test_framework)
if(RT_LIB) if(RT_LIB)
TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${RT_LIB}) TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${RT_LIB})
endif() endif()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment