summaryrefslogtreecommitdiff
path: root/source/slang-glsl-module
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang-glsl-module')
-rw-r--r--source/slang-glsl-module/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang-glsl-module/CMakeLists.txt b/source/slang-glsl-module/CMakeLists.txt
index d42b31ee6..40e88a4ed 100644
--- a/source/slang-glsl-module/CMakeLists.txt
+++ b/source/slang-glsl-module/CMakeLists.txt
@@ -1,6 +1,7 @@
#
# Generate an embeddable glsl module
#
+if (${SLANG_EMBED_CORE_MODULE})
set(glsl_module_generated_header_dir ${CMAKE_CURRENT_BINARY_DIR})
set(glsl_module_generated_header
@@ -37,3 +38,5 @@ slang_add_target(
INCLUDE_DIRECTORIES_PRIVATE ${glsl_module_generated_header_dir}
INSTALL
)
+
+endif() \ No newline at end of file