respect destdir for compat symlink

This commit is contained in:
Tim Biermann 2023-07-23 16:56:12 +02:00 committed by arcady-lunarg
parent 54726b3c1c
commit 171a322025

View File

@ -121,7 +121,7 @@ if(ENABLE_GLSLANG_INSTALL)
# Create the same symlink at install time
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E ${link_method} $<TARGET_FILE_NAME:glslang-standalone> ${legacy_glslang_name} \
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})")
WORKING_DIRECTORY \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR})")
if(ENABLE_SPVREMAPPER)
install(TARGETS spirv-remap EXPORT glslang-targets)