summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony-LunarG <tony@lunarg.com>2018-09-17 10:55:05 -0600
committerTony Barbour <tony@lunarg.com>2018-09-17 15:52:47 -0600
commitd8052a0d9feb3e4f8b60ce1fadeb4a6e726d2c75 (patch)
treef2372c5109466f12c442d5fced16b1dc7bdcc760
parente31a32283aa35f482f80067ded5e15a305f2a9ed (diff)
downloadVulkan-Tools-d8052a0d9feb3e4f8b60ce1fadeb4a6e726d2c75.tar.gz
Vulkan-Tools-d8052a0d9feb3e4f8b60ce1fadeb4a6e726d2c75.tar.bz2
Vulkan-Tools-d8052a0d9feb3e4f8b60ce1fadeb4a6e726d2c75.zip
cube: Look for GLSLANG_INSTALL_DIR env variable
Change-Id: I2df195a1b100a51a7a5d7be827743d3dd9c5da46
-rw-r--r--cube/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/cube/CMakeLists.txt b/cube/CMakeLists.txt
index 59105462..b2924bbf 100644
--- a/cube/CMakeLists.txt
+++ b/cube/CMakeLists.txt
@@ -19,6 +19,10 @@ set(CUBE_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/..
set(SCRIPTS_DIR "${PROJECT_SOURCE_DIR}/scripts")
+if (NOT GLSLANG_INSTALL_DIR AND DEFINED ENV{GLSLANG_INSTALL_DIR})
+ set(GLSLANG_INSTALL_DIR $ENV{GLSLANG_INSTALL_DIR})
+endif()
+
if(GLSLANG_INSTALL_DIR)
message(STATUS "Using GLSLANG_INSTALL_DIR to look for glslangValidator")
find_program(GLSLANG_VALIDATOR names glslangValidator HINTS "${GLSLANG_INSTALL_DIR}/bin")