Skip to content

Commit

Permalink
raise c++ std for version 13.0.0
Browse files Browse the repository at this point in the history
require newer CMake version
  • Loading branch information
psyinf committed Sep 19, 2023
1 parent 23488d2 commit 1107017
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/glslang/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class GlslangConan(ConanFile):
}

short_paths = True
def build_requirements(self):
self.tool_requires("cmake/[>=3.18]")


def export_sources(self):
copy(self, "CMakeLists.txt", self.recipe_folder, self.export_sources_folder)
Expand Down Expand Up @@ -74,9 +77,9 @@ def validate(self):

if self.settings.compiler.get_safe("cppstd"):
glslang_version = Version(self.version)
if glslang_version >= "13.0.0"
if glslang_version >= "13.0.0":
check_min_cppstd(self, 17)
else
else:
check_min_cppstd(self, 11)

# see https://github.com/KhronosGroup/glslang/issues/2283
Expand Down

0 comments on commit 1107017

Please sign in to comment.