Skip to content

Commit

Permalink
ktx: disable -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed May 19, 2024
1 parent 1e446a3 commit 92216f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions recipes/ktx/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,10 @@ def _patch_sources(self):
os.remove(os.path.join(basisu_dir, "encoder", "lodepng.h"))
## zstd
rmdir(self, os.path.join(basisu_dir, "zstd"))
# Disable -Werror (newer versions have it disabled by default)
if self.version == "4.2.1":
replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
# disable -Werror
if Version(self.version) >= "4.3.2":
replace_in_file(self, os.path.join(self.source_folder, "lib", "astc-encoder", "Source", "cmake_core.cmake"),
"-Werror", "")
replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
"/WX", "")

def build(self):
self._patch_sources()
Expand Down

0 comments on commit 92216f7

Please sign in to comment.