Use proper linkage between Catch2Main and Catch2

This commit is contained in:
Martin Hořeňovský
2019-12-18 20:14:34 +01:00
parent 0dc30e51c0
commit 4005d87460

View File

@ -266,7 +266,7 @@ add_library(Catch2Main STATIC
${SOURCES_DIR}/catch_main.cpp
)
add_library(Catch2::Catch2Main ALIAS Catch2Main)
target_link_libraries(Catch2Main INTERFACE Catch2)
target_link_libraries(Catch2Main PUBLIC Catch2)