Skip to content

Commit df04df9

Browse files
vsauluehorenmar
authored andcommitted
conanfile: fix cmake_target_name of Catch2::Catch2.
The "Catch2 without default main" target is currently unspecified in Conan, and defaults to catch2::catch2base. This commit switches it back to Catch2::Catch2, as specified in the docs.
1 parent f232072 commit df04df9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

conanfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def package_info(self):
116116

117117
# Catch2
118118
self.cpp_info.components["catch2base"].set_property("cmake_file_name", "Catch2::Catch2")
119+
self.cpp_info.components["catch2base"].set_property("cmake_target_name", "Catch2::Catch2")
119120
self.cpp_info.components["catch2base"].set_property("pkg_config_name", "catch2")
120121
self.cpp_info.components["catch2base"].libs = ["Catch2" + lib_suffix]
121122
self.cpp_info.components["catch2base"].builddirs.append("lib/cmake/Catch2")

0 commit comments

Comments
 (0)