diff --git a/docs/cmake-integration.md b/docs/cmake-integration.md index e872dcee..d8d08495 100644 --- a/docs/cmake-integration.md +++ b/docs/cmake-integration.md @@ -34,7 +34,7 @@ target_link_libraries(tests PRIVATE Catch2::Catch2WithMain) # These tests need their own main add_executable(custom-main-tests test.cpp test-main.cpp) -target_link_libraries(custom-main-tests PRIVATE Catch2::Catch2WithMain) +target_link_libraries(custom-main-tests PRIVATE Catch2::Catch2) ``` These targets are also provided when Catch2 is used as a subdirectory.