summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang-glslang/CMakeLists.txt1
-rw-r--r--source/slang-rt/CMakeLists.txt5
-rw-r--r--source/slang/CMakeLists.txt3
-rw-r--r--source/slangc/CMakeLists.txt1
4 files changed, 10 insertions, 0 deletions
diff --git a/source/slang-glslang/CMakeLists.txt b/source/slang-glslang/CMakeLists.txt
index d9d2dc45e..c457ad472 100644
--- a/source/slang-glslang/CMakeLists.txt
+++ b/source/slang-glslang/CMakeLists.txt
@@ -9,6 +9,7 @@ if(SLANG_ENABLE_SLANG_GLSLANG)
LINK_WITH_PRIVATE glslang SPIRV SPIRV-Tools-opt
INCLUDE_DIRECTORIES_PRIVATE ${slang_SOURCE_DIR}/include
INSTALL
+ EXPORT_SET_NAME SlangTargets
DEBUG_INFO_INSTALL_COMPONENT slang-glslang-debug-info
)
# Our only interface is through what we define in source/slang-glslang, in the
diff --git a/source/slang-rt/CMakeLists.txt b/source/slang-rt/CMakeLists.txt
index 2dc56355e..5a0d2881e 100644
--- a/source/slang-rt/CMakeLists.txt
+++ b/source/slang-rt/CMakeLists.txt
@@ -10,5 +10,10 @@ if(SLANG_ENABLE_SLANGRT)
EXPORT_MACRO_PREFIX SLANG_RT
INCLUDE_DIRECTORIES_PUBLIC ${slang_SOURCE_DIR}/include
INSTALL
+ # This depends on unordered_dense in the header, so we can't export
+ # this via cmake without obligating ourselves to also install our
+ # bundled version of unordered_dense, give it this different export set
+ # name so we don't attempt to export it
+ EXPORT_SET_NAME SlangRTTargets
)
endif()
diff --git a/source/slang/CMakeLists.txt b/source/slang/CMakeLists.txt
index 0adaa04a7..267498896 100644
--- a/source/slang/CMakeLists.txt
+++ b/source/slang/CMakeLists.txt
@@ -233,6 +233,8 @@ set(slang_public_lib_args
$<IF:$<BOOL:${SLANG_EMBED_CORE_MODULE}>,slang-embedded-core-module,slang-no-embedded-core-module>
$<IF:$<BOOL:${SLANG_EMBED_CORE_MODULE_SOURCE}>,slang-embedded-core-module-source,slang-no-embedded-core-module-source>
INSTALL
+ EXPORT_SET_NAME
+ SlangTargets
)
#
@@ -284,6 +286,7 @@ else()
OUTPUT_DIR generators
FOLDER generators
INSTALL_COMPONENT generators
+ EXPORT_SET_NAME SlangGeneratorTargets
)
slang_add_target(
.
diff --git a/source/slangc/CMakeLists.txt b/source/slangc/CMakeLists.txt
index fba390b31..59d691bf4 100644
--- a/source/slangc/CMakeLists.txt
+++ b/source/slangc/CMakeLists.txt
@@ -6,5 +6,6 @@ if(SLANG_ENABLE_SLANGC)
DEBUG_DIR ${slang_SOURCE_DIR}
LINK_WITH_PRIVATE core slang Threads::Threads
INSTALL
+ EXPORT_SET_NAME SlangTargets
)
endif()