diff --git a/recipes/catch2/2.x.x/conanfile.py b/recipes/catch2/2.x.x/conanfile.py index 8479e7b23f65a..9d9e27d3189c2 100644 --- a/recipes/catch2/2.x.x/conanfile.py +++ b/recipes/catch2/2.x.x/conanfile.py @@ -41,9 +41,10 @@ def package(self): cmake.install() tools.rmdir(os.path.join(self.package_folder, "lib", "cmake")) tools.rmdir(os.path.join(self.package_folder, "share")) - self.copy("ParseAndAddCatchTests.cmake", - src=os.path.join(self._source_subfolder, "contrib"), - dst=os.path.join("lib", "cmake", "Catch2")) + for cmake_file in ["ParseAndAddCatchTests.cmake", "Catch.cmake"]: + self.copy(cmake_file, + src=os.path.join(self._source_subfolder, "contrib"), + dst=os.path.join("lib", "cmake", "Catch2")) def package_id(self): self.info.header_only()