Commit 2d8758cb authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

cmake: we need link to boost::utf

fix:

/usr/bin/ld: svd.cc:(.text._Z4testILb0ELb1EEvv[_Z4testILb0ELb1EEvv]+0x17cf): undefined reference to `boost::test_tools::tt_detail::report_assertion(boost::test_tools::assertion_result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)'
/usr/bin/ld: CMakeFiles/svd.dir/svd.cc.o:(.data.rel.ro+0x0): undefined reference to `boost::unit_test::lazy_ostream::inst'
collect2: error: ld returned 1 exit status
make[4]: *** [tests/CMakeFiles/svd.dir/build.make:109: tests/svd] Error 1
parent 087ee5b0
Pipeline #19806 failed with stage
in 1 minute and 4 seconds
Subproject commit e77c9c32b1d69b21e447cf64f1ad1590aab61159
Subproject commit ee7a773c5c23f83dd21eb0ccfa96277e068b0456
......@@ -42,8 +42,7 @@ find_library(RT_LIB rt)
MACRO(ADD_TESTCASE NAME)
ADD_UNIT_TEST(${NAME} ${NAME}.cc)
TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${PROJECT_NAME})
TARGET_INCLUDE_DIRECTORIES(${NAME} PRIVATE Boost::unit_test_framework)
TARGET_LINK_LIBRARIES(${NAME} PRIVATE Boost::unit_test_framework)
if(RT_LIB)
TARGET_LINK_LIBRARIES(${NAME} PRIVATE ${RT_LIB})
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