Skip to content

Commit

Permalink
only need Boost::included_unit_test_framework when using submoduled b…
Browse files Browse the repository at this point in the history
…oost
  • Loading branch information
spoonincode committed Jul 2, 2024
1 parent ca4f072 commit 24c4bc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
file(GLOB UNIT_TESTS "*.cpp")
add_executable( appbase_test ${UNIT_TESTS} )
target_link_libraries( appbase_test appbase Boost::included_unit_test_framework ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} )
target_link_libraries( appbase_test appbase ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} )
if(TARGET Boost::asio)
target_link_libraries( appbase_test Boost::included_unit_test_framework )
endif()

add_test( appbase_test appbase_test )

0 comments on commit 24c4bc0

Please sign in to comment.