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 committed Apr 18, 2024
1 parent 53ddf37 commit 7e7c64b
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 @@ -115,6 +115,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 7e7c64b

Please sign in to comment.