2018-08-25 17:01:27 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2018-08-25 15:28:25.894943233 +0200
|
|
|
|
|
|
|
|
Unversioned libraries suck!
|
|
|
|
|
|
|
|
---
|
2018-08-25 17:22:09 +02:00
|
|
|
SPIRV/CMakeLists.txt | 2 ++
|
|
|
|
StandAlone/CMakeLists.txt | 1 +
|
|
|
|
glslang/CMakeLists.txt | 1 +
|
|
|
|
hlsl/CMakeLists.txt | 1 +
|
|
|
|
4 files changed, 5 insertions(+)
|
2018-08-25 17:01:27 +02:00
|
|
|
|
|
|
|
Index: glslang-7.8.2853.g9/SPIRV/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- glslang-7.8.2853.g9.orig/SPIRV/CMakeLists.txt
|
|
|
|
+++ glslang-7.8.2853.g9/SPIRV/CMakeLists.txt
|
|
|
|
@@ -42,12 +42,14 @@ if(ENABLE_NV_EXTENSIONS)
|
|
|
|
endif(ENABLE_NV_EXTENSIONS)
|
|
|
|
|
|
|
|
add_library(SPIRV ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
|
|
|
+set_target_properties(SPIRV PROPERTIES SOVERSION suse1)
|
|
|
|
set_property(TARGET SPIRV PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPIRV PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_include_directories(SPIRV PUBLIC ..)
|
|
|
|
|
|
|
|
if (ENABLE_SPVREMAPPER)
|
|
|
|
add_library(SPVRemapper ${LIB_TYPE} ${SPVREMAP_SOURCES} ${SPVREMAP_HEADERS})
|
|
|
|
+ set_target_properties(SPVRemapper PROPERTIES SOVERSION suse1)
|
|
|
|
set_property(TARGET SPVRemapper PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET SPVRemapper PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
endif()
|
2018-08-25 17:22:09 +02:00
|
|
|
Index: glslang-7.8.2853.g9/StandAlone/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- glslang-7.8.2853.g9.orig/StandAlone/CMakeLists.txt
|
|
|
|
+++ glslang-7.8.2853.g9/StandAlone/CMakeLists.txt
|
|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
add_library(glslang-default-resource-limits
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/ResourceLimits.cpp)
|
|
|
|
+set_target_properties(glslang-default-resource-limits PROPERTIES SOVERSION suse1)
|
|
|
|
set_property(TARGET glslang-default-resource-limits PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET glslang-default-resource-limits PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|
|
|
|
Index: glslang-7.8.2853.g9/glslang/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- glslang-7.8.2853.g9.orig/glslang/CMakeLists.txt
|
|
|
|
+++ glslang-7.8.2853.g9/glslang/CMakeLists.txt
|
|
|
|
@@ -81,6 +81,7 @@ set(HEADERS
|
|
|
|
# set(BISON_GLSLParser_OUTPUT_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/MachineIndependent/glslang_tab.cpp)
|
|
|
|
|
|
|
|
add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${SOURCES} ${HEADERS})
|
|
|
|
+set_target_properties(glslang PROPERTIES SOVERSION suse1)
|
|
|
|
set_property(TARGET glslang PROPERTY FOLDER glslang)
|
|
|
|
set_property(TARGET glslang PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
target_link_libraries(glslang OGLCompiler OSDependent)
|
2018-08-25 17:01:27 +02:00
|
|
|
Index: glslang-7.8.2853.g9/hlsl/CMakeLists.txt
|
|
|
|
===================================================================
|
|
|
|
--- glslang-7.8.2853.g9.orig/hlsl/CMakeLists.txt
|
|
|
|
+++ glslang-7.8.2853.g9/hlsl/CMakeLists.txt
|
|
|
|
@@ -18,6 +18,7 @@ set(HEADERS
|
|
|
|
hlslParseables.h)
|
|
|
|
|
|
|
|
add_library(HLSL ${LIB_TYPE} ${SOURCES} ${HEADERS})
|
|
|
|
+set_target_properties(HLSL PROPERTIES SOVERSION suse1)
|
|
|
|
set_property(TARGET HLSL PROPERTY FOLDER hlsl)
|
|
|
|
set_property(TARGET HLSL PROPERTY POSITION_INDEPENDENT_CODE ON)
|
|
|
|
|