Skip to content

Commit

Permalink
conanfile: fix cmake_target_name of Catch2::Catch2.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vsaulue authored and horenmar committed Apr 20, 2024
1 parent f232072 commit df04df9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def package_info(self):

# Catch2
self.cpp_info.components["catch2base"].set_property("cmake_file_name", "Catch2::Catch2")
self.cpp_info.components["catch2base"].set_property("cmake_target_name", "Catch2::Catch2")
self.cpp_info.components["catch2base"].set_property("pkg_config_name", "catch2")
self.cpp_info.components["catch2base"].libs = ["Catch2" + lib_suffix]
self.cpp_info.components["catch2base"].builddirs.append("lib/cmake/Catch2")
Expand Down

0 comments on commit df04df9

Please sign in to comment.