summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-11 21:06:23 +0800
committerGitHub <noreply@github.com>2024-10-11 21:06:23 +0800
commite91e1d4d54a14d985626318e5cf46635bfa4006d (patch)
tree18e5d045235b743429821c249b5611b70c8cd02d /CMakeLists.txt
parentdfab34e4bf508fc517d4d645ebb3b6b1179a5003 (diff)
Restrict stdlib embed macros to single source file (#5251)
* Restrict stdlib embed macros to single source file * Build slang-without-embedded-stdlib with the same target type as libslang To avoid building everything twice
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index da22ec19a..4e27a724e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -334,7 +334,12 @@ generator(
source/slangc
TARGET_NAME slang-bootstrap
USE_FEWER_WARNINGS
- LINK_WITH_PRIVATE prelude slang-no-embedded-stdlib slang-capability-lookup slang-lookup-tables Threads::Threads
+ LINK_WITH_PRIVATE
+ prelude
+ slang-without-embedded-stdlib
+ slang-capability-lookup
+ slang-lookup-tables
+ Threads::Threads
)
#
@@ -344,6 +349,7 @@ generator(
# keep these non-trivial targets in their own directories so as not to clutter
# this file
add_subdirectory(prelude)
+add_subdirectory(source/slang-stdlib)
add_subdirectory(source/slang)
if(SLANG_ENABLE_SLANGD)