Fixed issues 2496. Used option 4: parse_version.cmake to avoid python3 usage.

https://github.com/KhronosGroup/glslang/issues/2496
This commit is contained in:
Evgeny Proydakov 2021-02-07 15:37:03 +03:00
parent 386b4fcb28
commit 05798c17fb
4 changed files with 64 additions and 43 deletions

View file

@ -34,10 +34,10 @@
#ifndef GLSLANG_BUILD_INFO
#define GLSLANG_BUILD_INFO
#define GLSLANG_VERSION_MAJOR <major>
#define GLSLANG_VERSION_MINOR <minor>
#define GLSLANG_VERSION_PATCH <patch>
#define GLSLANG_VERSION_FLAVOR "<flavor>"
#define GLSLANG_VERSION_MAJOR @major@
#define GLSLANG_VERSION_MINOR @minor@
#define GLSLANG_VERSION_PATCH @patch@
#define GLSLANG_VERSION_FLAVOR "@flavor@"
#define GLSLANG_VERSION_GREATER_THAN(major, minor, patch) \
(((major) > GLSLANG_VERSION_MAJOR) || ((major) == GLSLANG_VERSION_MAJOR && \