2020-08-10 14:25:15 +00:00
|
|
|
--- a/libshaderc_util/CMakeLists.txt
|
|
|
|
+++ b/libshaderc_util/CMakeLists.txt
|
2024-07-05 13:00:32 +00:00
|
|
|
@@ -47,7 +47,7 @@ add_definitions(-DENABLE_HLSL)
|
2020-08-10 14:25:15 +00:00
|
|
|
find_package(Threads)
|
|
|
|
target_link_libraries(shaderc_util PRIVATE
|
2024-07-05 13:00:32 +00:00
|
|
|
glslang SPIRV
|
2020-08-10 14:25:15 +00:00
|
|
|
- SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
+ SPIRV-Tools-opt MachineIndependent GenericCodeGen ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|
|
|
|
shaderc_add_tests(
|
|
|
|
TEST_PREFIX shaderc_util
|
|
|
|
|
|
|
|
--- a/glslc/CMakeLists.txt
|
|
|
|
+++ b/glslc/CMakeLists.txt
|
2024-07-05 13:00:32 +00:00
|
|
|
@@ -43,7 +43,7 @@ if (SHADERC_ENABLE_WGSL_OUTPUT)
|
2020-08-10 14:25:15 +00:00
|
|
|
endif(SHADERC_ENABLE_WGSL_OUTPUT)
|
|
|
|
|
|
|
|
target_link_libraries(glslc PRIVATE
|
2024-07-05 13:00:32 +00:00
|
|
|
- glslang SPIRV # Glslang libraries
|
|
|
|
+ glslang SPIRV MachineIndependent GenericCodeGen # Glslang libraries
|
2020-08-10 14:25:15 +00:00
|
|
|
$<$<BOOL:${SHADERC_ENABLE_WGSL_OUTPUT}>:libtint> # Tint libraries, optional
|
|
|
|
shaderc_util shaderc # internal Shaderc libraries
|
|
|
|
${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
|