Rename CMake/pkg-config target Catch2Main to Catch2WithMain

This describes the reality better, as it also links in the rest
of Catch2.

The on-disk name of the static library remains just `Catch2Main`,
as that is what it is -- single main function -- and on-disk artifacts
cannot describe link dependencies.
This commit is contained in:
Martin Hořeňovský 2020-05-03 18:54:38 +02:00
parent 33c58dad41
commit 19ecad6f68
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
6 changed files with 18 additions and 15 deletions

View file

@ -40,6 +40,6 @@ class CatchConan(ConanFile):
def package_info(self):
self.cpp_info.libs = [
'Catch2Main', 'Catch2'] if self.options.with_main else ['Catch2']
'Catch2WithMain', 'Catch2'] if self.options.with_main else ['Catch2']
self.cpp_info.names["cmake_find_package"] = "Catch2"
self.cpp_info.names["cmake_find_package_multi"] = "Catch2"