From: d3x0r Date: Tue, 4 Jul 2017 12:54:57 +0000 (-0700) Subject: Add option to skip installation X-Git-Tag: upstream/11.4.0~1083^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8f494ff145d55de3cc778036bc7cff57726c86f;p=platform%2Fupstream%2Fglslang.git Add option to skip installation As a static target, when included in other cmake projects, it is not needed to install these libraries and headers as part of this build, and just need to link to this. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d98c9f..9bc94b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,11 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) # Adhere to GNU filesystem layout conventions include(GNUInstallDirs) +option(SKIP_GLSLANG_INSTALL "Skip installation" ${SKIP_GLSLANG_INSTALL}) +if(NOT ${SKIP_GLSLANG_INSTALL}) + set(ENABLE_GLSLANG_INSTALL ON) +endif() + option(ENABLE_AMD_EXTENSIONS "Enables support of AMD-specific extensions" ON) option(ENABLE_GLSLANG_BINARIES "Builds glslangValidator and spirv-remap" ON)