Skip to content

Commit

Permalink
(#8741) spirv-headers: fix pkg_config name + modernize
Browse files Browse the repository at this point in the history
* modernize & fix pkg_config name

* keep .names[pkg_config]
  • Loading branch information
SpaceIm authored Jan 12, 2022
1 parent d214dce commit f75ef3a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipes/spirv-headers/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from conans import ConanFile, tools, CMake
import os

required_conan_version = ">=1.33.0"
required_conan_version = ">=1.43.0"


class SpirvheadersConan(ConanFile):
Expand Down Expand Up @@ -53,5 +53,11 @@ def package(self):
tools.rmdir(os.path.join(self.package_folder, "share"))

def package_info(self):
self.cpp_info.set_property("cmake_file_name", "SPIRV-Headers")
self.cpp_info.set_property("cmake_target_name", "SPIRV-Headers::SPIRV-Headers")
self.cpp_info.set_property("pkg_config_name", "SPIRV-Headers")

# TODO: to remove in conan v2 once cmake_find_package* & pkg_config generators removed
self.cpp_info.names["cmake_find_package"] = "SPIRV-Headers"
self.cpp_info.names["cmake_find_package_multi"] = "SPIRV-Headers"
self.cpp_info.names["pkg_config"] = "SPIRV-Headers"

0 comments on commit f75ef3a

Please sign in to comment.