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 073b7d8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions recipes/ktx/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,9 @@ 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"),
"-Werror", "")
replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
"/WX", "")
# disable -Werror
replace_in_file(self, os.path.join(self.source_folder, "lib", "astc-encoder", "Source", "cmake_core.cmake"),
"-Werror", "")

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

0 comments on commit 073b7d8

Please sign in to comment.