Force STATIC for internal GZDoom SPIRV library

This makes sure the internal version of this library bundled with the
GZDoom source code is used. This prevents the system from building
GZDoom for dynamic linking with an incompatible external library (see
commit 6fafa297bf and
<https://forum.zdoom.org/viewtopic.php?f=2&t=64633>).
This commit is contained in:
William Breathitt Gray 2020-06-17 15:17:49 -04:00 committed by alexey.lysiuk
parent f7bec90e74
commit 63aeea5b9e
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ set(SPVREMAP_HEADERS
SPVRemapper.h
doc.h)
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
add_library(SPIRV STATIC ${LIB_TYPE} ${SOURCES} ${HEADERS})
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
target_include_directories(SPIRV PUBLIC