mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
build: add full SO versioning
ABI gets repeatedly changed between tags, and so.MAJOR is no longer enough. Still don't know what to do about #3312 because that is a release where not even the minor number is changed. Fixes: #3052 #3311
This commit is contained in:
parent
db8719ae07
commit
d2eb1c8396
@ -75,7 +75,7 @@ set_target_properties(SPIRV PROPERTIES
|
||||
FOLDER glslang
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
VERSION "${GLSLANG_VERSION}"
|
||||
SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
||||
SOVERSION "${GLSLANG_VERSION}")
|
||||
target_include_directories(SPIRV PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
||||
@ -88,7 +88,7 @@ if (ENABLE_SPVREMAPPER)
|
||||
FOLDER glslang
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
VERSION "${GLSLANG_VERSION}"
|
||||
SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
||||
SOVERSION "${GLSLANG_VERSION}")
|
||||
endif()
|
||||
|
||||
if(WIN32 AND BUILD_SHARED_LIBS)
|
||||
|
@ -168,7 +168,7 @@ set_target_properties(glslang PROPERTIES
|
||||
FOLDER glslang
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
VERSION "${GLSLANG_VERSION}"
|
||||
SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
||||
SOVERSION "${GLSLANG_VERSION}")
|
||||
target_link_libraries(glslang PRIVATE OGLCompiler OSDependent MachineIndependent)
|
||||
target_include_directories(glslang PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>
|
||||
@ -198,7 +198,7 @@ set(RESOURCELIMITS_HEADERS
|
||||
add_library(glslang-default-resource-limits STATIC ${RESOURCELIMITS_SOURCES} ${RESOURCELIMITS_HEADERS})
|
||||
set_target_properties(glslang-default-resource-limits PROPERTIES
|
||||
VERSION "${GLSLANG_VERSION}"
|
||||
SOVERSION "${GLSLANG_VERSION_MAJOR}"
|
||||
SOVERSION "${GLSLANG_VERSION}"
|
||||
FOLDER glslang
|
||||
POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
|
@ -42,7 +42,7 @@ set_target_properties(HLSL PROPERTIES
|
||||
FOLDER hlsl
|
||||
POSITION_INDEPENDENT_CODE ON
|
||||
VERSION "${GLSLANG_VERSION}"
|
||||
SOVERSION "${GLSLANG_VERSION_MAJOR}")
|
||||
SOVERSION "${GLSLANG_VERSION}")
|
||||
|
||||
if(WIN32 AND BUILD_SHARED_LIBS)
|
||||
set_target_properties(HLSL PROPERTIES PREFIX "")
|
||||
|
Loading…
Reference in New Issue
Block a user