diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 9e9d8b16f..fecab9154 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -92,7 +92,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 $) + if (SKIP_GLSLANG_INSTALL) + set(GLSLANG_ENABLE_INSTALL OFF) + else() + set(GLSLANG_ENABLE_INSTALL ON) + endif() set(ENABLE_HLSL "${SHADERC_ENABLE_HLSL}") add_subdirectory(${SHADERC_GLSLANG_DIR} glslang) endif()