Some problems when ADD_SUBDIRECTORY
ing slang on Windows
#5871
Labels
goal:quality & productivity
Quality issues and issues that impact our productivity coding day to day inside slang
Milestone
When
ADD_SUBDIRECTORY
ing slang on Windows, building fails withslang-glslang
trying to linkSPIRV(d).lib
:(sorry, not English)
This is because the import library
SPIRV(d).lib
is not generated alongside the DLL,which is worked around by setting
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
toON
before theADD_SUBDIRECTORY
:But next time, linking for
slang-glslang
fails trying link to methods defined inMachineIndependent
:This is because
glslang(d).dll
does not export the methods defined in the static libMachineIndependent.lib
,which is worked around by making
MachineIndependent
use__declspec(dllexport)
forGLSLANG_EXPORT
:The text was updated successfully, but these errors were encountered: