From d8052a0d9feb3e4f8b60ce1fadeb4a6e726d2c75 Mon Sep 17 00:00:00 2001 From: Tony-LunarG Date: Mon, 17 Sep 2018 10:55:05 -0600 Subject: cube: Look for GLSLANG_INSTALL_DIR env variable Change-Id: I2df195a1b100a51a7a5d7be827743d3dd9c5da46 --- cube/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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") -- cgit v1.2.3