Fixed shaderc compilation on windows
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
|
||||
index d44f62a..16bad95 100644
|
||||
--- a/third_party/CMakeLists.txt
|
||||
+++ b/third_party/CMakeLists.txt
|
||||
@@ -87,7 +87,11 @@ if (NOT TARGET glslang)
|
||||
# Glslang tests are off by default. Turn them on if testing Shaderc.
|
||||
set(GLSLANG_TESTS ON)
|
||||
endif()
|
||||
- set(GLSLANG_ENABLE_INSTALL $<NOT:${SKIP_GLSLANG_INSTALL}>)
|
||||
+ if (${SKIP_GLSLANG_INSTALL})
|
||||
+ set(GLSLANG_ENABLE_INSTALL OFF)
|
||||
+ else()
|
||||
+ set(GLSLANG_ENABLE_INSTALL ON)
|
||||
+ endif()
|
||||
add_subdirectory(${SHADERC_GLSLANG_DIR} glslang)
|
||||
endif()
|
||||
if (NOT TARGET glslang)
|
||||
diff --git a/utils/git-sync-deps b/utils/git-sync-deps
|
||||
index eecfbe9..73df6e5 100755
|
||||
--- a/utils/git-sync-deps
|
||||
+++ b/utils/git-sync-deps
|
||||
@@ -279,4 +279,4 @@ def main(argv):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
- exit(main(sys.argv[1:]))
|
||||
+ sys.exit(main(sys.argv[1:]))
|
||||
Reference in New Issue
Block a user