diff --git a/conanfile.py b/conanfile.py index 8f45b8a975..71632aa217 100755 --- a/conanfile.py +++ b/conanfile.py @@ -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")