Skip to content

Commit 74c39ea

Browse files
authored
Revert "Reduce the dependency to thread library (#8216)" (#8319)
This cause the pthread not found issue on old glibc build. This reverts commit 1133271.
1 parent c19e2e9 commit 74c39ea

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

source/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ slang_add_target(
44
EXPORT_MACRO_PREFIX SLANG
55
EXCLUDE_FROM_ALL
66
USE_EXTRA_WARNINGS
7-
LINK_WITH_PRIVATE miniz lz4_static ${CMAKE_DL_LIBS}
7+
LINK_WITH_PRIVATE miniz lz4_static Threads::Threads ${CMAKE_DL_LIBS}
88
LINK_WITH_PUBLIC unordered_dense::unordered_dense
99
INCLUDE_DIRECTORIES_PUBLIC
1010
${slang_SOURCE_DIR}/source

source/slang-rt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if(SLANG_ENABLE_SLANGRT)
55
# This compiles 'core' again with the SLANG_RT_DYNAMIC_EXPORT macro defined
66
EXTRA_SOURCE_DIRS ${slang_SOURCE_DIR}/source/core
77
USE_EXTRA_WARNINGS
8-
LINK_WITH_PRIVATE miniz lz4_static ${CMAKE_DL_LIBS}
8+
LINK_WITH_PRIVATE miniz lz4_static Threads::Threads ${CMAKE_DL_LIBS}
99
LINK_WITH_PUBLIC unordered_dense::unordered_dense
1010
EXPORT_MACRO_PREFIX SLANG_RT
1111
INCLUDE_DIRECTORIES_PUBLIC ${slang_SOURCE_DIR}/include

source/slangc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ if(SLANG_ENABLE_SLANGC)
1313
LINK_WITH_PRIVATE
1414
core
1515
slang
16+
Threads::Threads
1617
${SLANG_GLSL_MODULE_DEPENDENCY}
1718
INSTALL
1819
EXPORT_SET_NAME SlangTargets

0 commit comments

Comments
 (0)