Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVincent Saulue-Laborde2024-04-18 19:19:09 +0200
committerMartin Hořeňovský2024-04-20 14:31:04 +0200
commitdf04df94dbe59efdb7496f3d9872f55cbc61bb24 (patch)
treeb127f0aa25ab2b6aa51401ba60a9b5121a974aad
parentf2320724a74f95d83f8c259e1a96cf2cd9a1d6aa (diff)
downloadcatch3-df04df94dbe59efdb7496f3d9872f55cbc61bb24.tar.gz
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.
-rwxr-xr-xconanfile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
index bcdd426f..7a3ac7c3 100755
--- a/conanfile.py
+++ b/conanfile.py
@@ -116,6 +116,7 @@ class CatchConan(ConanFile):
# 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")