glslang_linker_flags.patch 880 B

12345678910111213141516171819202122232425
  1. --- a/libshaderc_util/CMakeLists.txt
  2. +++ b/libshaderc_util/CMakeLists.txt
  3. @@ -47,7 +47,7 @@ add_definitions(-DENABLE_HLSL)
  4. find_package(Threads)
  5. target_link_libraries(shaderc_util PRIVATE
  6. glslang SPIRV
  7. - SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT})
  8. + SPIRV-Tools-opt MachineIndependent GenericCodeGen ${CMAKE_THREAD_LIBS_INIT})
  9. shaderc_add_tests(
  10. TEST_PREFIX shaderc_util
  11. --- a/glslc/CMakeLists.txt
  12. +++ b/glslc/CMakeLists.txt
  13. @@ -43,7 +43,7 @@ if (SHADERC_ENABLE_WGSL_OUTPUT)
  14. endif(SHADERC_ENABLE_WGSL_OUTPUT)
  15. target_link_libraries(glslc PRIVATE
  16. - glslang SPIRV # Glslang libraries
  17. + glslang SPIRV MachineIndependent GenericCodeGen # Glslang libraries
  18. $<$<BOOL:${SHADERC_ENABLE_WGSL_OUTPUT}>:libtint> # Tint libraries, optional
  19. shaderc_util shaderc # internal Shaderc libraries
  20. ${CMAKE_THREAD_LIBS_INIT})