Fix Conan recipe

Apparently cpp_info.libs is a list of _filenames_ and not _targets_.
Oh well.
This commit is contained in:
Martin Hořeňovský 2020-05-03 19:34:34 +02:00
parent c086746cc9
commit 26622f1620
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

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