Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1480c1/04bf1c24b94303970e12686bb95cf7c7 to your computer and use it in GitHub Desktop.
Save 1480c1/04bf1c24b94303970e12686bb95cf7c7 to your computer and use it in GitHub Desktop.
shaderc stuff
From 968413df1fa8e534d6c10c0ce56724c7f72c549c Mon Sep 17 00:00:00 2001
From: Christopher Degawa <ccom@randomderp.com>
Date: Mon, 20 Dec 2021 12:31:13 -0600
Subject: [PATCH] third_party: set INSTALL variables as cache
this would give the option to install only shaderc if they already have
the third party repos in their system
Signed-off-by: Christopher Degawa <ccom@randomderp.com>
---
third_party/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index 7bd9617..b317c83 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -18,9 +18,9 @@ set(SHADERC_RE2_DIR "${SHADERC_THIRD_PARTY_ROOT_DIR}/re2" CACHE STRING
set(SHADERC_TINT_DIR "${SHADERC_THIRD_PARTY_ROOT_DIR}/tint" CACHE STRING
"Location of tint source")
-set( SKIP_GLSLANG_INSTALL ${SHADERC_SKIP_INSTALL} )
-set( SKIP_SPIRV_TOOLS_INSTALL ${SHADERC_SKIP_INSTALL} )
-set( SKIP_GOOGLETEST_INSTALL ${SHADERC_SKIP_INSTALL} )
+set( SKIP_GLSLANG_INSTALL ${SHADERC_SKIP_INSTALL} CACHE BOOL "Skip glslang installation" )
+set( SKIP_SPIRV_TOOLS_INSTALL ${SHADERC_SKIP_INSTALL} CACHE BOOL "Skip spirv-tools installation" )
+set( SKIP_GOOGLETEST_INSTALL ${SHADERC_SKIP_INSTALL} CACHE BOOL "Skip googletest installation" )
# Configure third party projects.
if(${SHADERC_ENABLE_TESTS})
--
2.34.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment