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:
Jan Engelhardt 2023-08-22 12:37:21 +02:00
parent db8719ae07
commit d2eb1c8396
3 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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 "")