cmake: Don't link SPVRemapper into glslang executable

The functionality of `libSPVRemapper` is only used by the
`spirv-remap` executable, so don't link it into the `glslang`
executable.
This commit is contained in:
Sven van Haastregt 2023-08-17 17:21:21 +01:00 committed by arcady-lunarg
parent 98aa694422
commit 70d125b924

View File

@ -58,10 +58,6 @@ set(LIBRARIES
SPIRV SPIRV
glslang-default-resource-limits) glslang-default-resource-limits)
if(ENABLE_SPVREMAPPER)
set(LIBRARIES ${LIBRARIES} SPVRemapper)
endif()
if(WIN32) if(WIN32)
set(LIBRARIES ${LIBRARIES} psapi) set(LIBRARIES ${LIBRARIES} psapi)
elseif(UNIX) elseif(UNIX)
@ -86,7 +82,7 @@ if(ENABLE_SPVREMAPPER)
add_executable(spirv-remap ${REMAPPER_SOURCES}) add_executable(spirv-remap ${REMAPPER_SOURCES})
set_property(TARGET spirv-remap PROPERTY FOLDER tools) set_property(TARGET spirv-remap PROPERTY FOLDER tools)
glslang_set_link_args(spirv-remap) glslang_set_link_args(spirv-remap)
target_link_libraries(spirv-remap ${LIBRARIES}) target_link_libraries(spirv-remap SPVRemapper ${LIBRARIES})
endif() endif()
if(WIN32) if(WIN32)