summaryrefslogtreecommitdiff
path: root/source/slang-glsl-module
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-01-31 21:13:17 -0800
committerGitHub <noreply@github.com>2025-01-31 21:13:17 -0800
commit16b7be65d3edf99c420fe5147d7daed27224d473 (patch)
treece0f7b368b9bd183730314afd4fea21d6da11c43 /source/slang-glsl-module
parent5173c874892ab54bf1abd7ea21477e2d2aaa4365 (diff)
Fix build issue when SLANG_EMBED_CORE_MODULE is OFF. (#6243)
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