forked from pool/glslang
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
|
From: Jan Engelhardt <jengelh@inai.de>
|
||
|
Date: 2018-08-25 15:28:25.894943233 +0200
|
||
|
|
||
|
Unversioned libraries suck!
|
||
|
|
||
|
---
|
||
|
SPIRV/CMakeLists.txt | 2 ++
|
||
|
hlsl/CMakeLists.txt | 1 +
|
||
|
2 files changed, 3 insertions(+)
|
||
|
|
||
|
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()
|
||
|
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)
|
||
|
|