Skip to content

Commit

Permalink
Assume self.settings_target is always available on Conan v2
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 13, 2024
1 parent 5a1e301 commit 319be4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/shader-slang/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
if getattr(self, "settings_target") is not None:
if self.settings_target is not None:
# Build and install native build tools for cross-compilation
cmake.build(target="generators")
cmake.build(target="slang-bootstrap")
Expand All @@ -139,7 +139,7 @@ def package(self):
copy(self, "LICENSE", self.source_folder, os.path.join(self.package_folder, "licenses"))
cmake = CMake(self)
cmake.install()
if getattr(self, "settings_target") is not None:
if self.settings_target is not None:
cmake.install(component="generators")
rmdir(self, os.path.join(self.package_folder, "share"))

Expand Down

0 comments on commit 319be4b

Please sign in to comment.