1
0
forked from pool/spirv-tools
spirv-tools/ver.diff

69 lines
2.8 KiB
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2016-06-13 11:46:16.846841814 +0200
Unversioned libraries suck!
---
source/CMakeLists.txt | 2 ++
source/comp/CMakeLists.txt | 1 +
source/link/CMakeLists.txt | 1 +
source/opt/CMakeLists.txt | 1 +
4 files changed, 5 insertions(+)
Index: spirv-tools-2018.6.g0/source/CMakeLists.txt
===================================================================
--- spirv-tools-2018.6.g0.orig/source/CMakeLists.txt
+++ spirv-tools-2018.6.g0/source/CMakeLists.txt
@@ -348,6 +348,7 @@ set_source_files_properties(
spvtools_pch(SPIRV_SOURCES pch_source)
add_library(${SPIRV_TOOLS} ${SPIRV_SOURCES})
+set_target_properties(${SPIRV_TOOLS} PROPERTIES SOVERSION suse8)
spvtools_default_compile_options(${SPIRV_TOOLS})
target_include_directories(${SPIRV_TOOLS}
PUBLIC ${spirv-tools_SOURCE_DIR}/include
@@ -358,6 +359,7 @@ set_property(TARGET ${SPIRV_TOOLS} PROPE
spvtools_check_symbol_exports(${SPIRV_TOOLS})
add_library(${SPIRV_TOOLS}-shared SHARED ${SPIRV_SOURCES})
+set_target_properties(${SPIRV_TOOLS}-shared PROPERTIES SOVERSION suse8)
spvtools_default_compile_options(${SPIRV_TOOLS}-shared)
target_include_directories(${SPIRV_TOOLS}-shared
PUBLIC ${spirv-tools_SOURCE_DIR}/include
Index: spirv-tools-2018.6.g0/source/comp/CMakeLists.txt
===================================================================
--- spirv-tools-2018.6.g0.orig/source/comp/CMakeLists.txt
+++ spirv-tools-2018.6.g0/source/comp/CMakeLists.txt
@@ -29,6 +29,7 @@ if(SPIRV_BUILD_COMPRESSION)
move_to_front.h
move_to_front.cpp)
+ set_target_properties(SPIRV-Tools-comp PROPERTIES SOVERSION suse8)
spvtools_default_compile_options(SPIRV-Tools-comp)
target_include_directories(SPIRV-Tools-comp
PUBLIC ${spirv-tools_SOURCE_DIR}/include
Index: spirv-tools-2018.6.g0/source/link/CMakeLists.txt
===================================================================
--- spirv-tools-2018.6.g0.orig/source/link/CMakeLists.txt
+++ spirv-tools-2018.6.g0/source/link/CMakeLists.txt
@@ -14,6 +14,7 @@
add_library(SPIRV-Tools-link
linker.cpp
)
+set_target_properties(SPIRV-Tools-link PROPERTIES SOVERSION suse8)
spvtools_default_compile_options(SPIRV-Tools-link)
target_include_directories(SPIRV-Tools-link
Index: spirv-tools-2018.6.g0/source/opt/CMakeLists.txt
===================================================================
--- spirv-tools-2018.6.g0.orig/source/opt/CMakeLists.txt
+++ spirv-tools-2018.6.g0/source/opt/CMakeLists.txt
@@ -194,6 +194,7 @@ spvtools_pch(SPIRV_TOOLS_OPT_SOURCES pch
add_library(SPIRV-Tools-opt ${SPIRV_TOOLS_OPT_SOURCES})
+set_target_properties(SPIRV-Tools-opt PROPERTIES SOVERSION suse8)
spvtools_default_compile_options(SPIRV-Tools-opt)
target_include_directories(SPIRV-Tools-opt
PUBLIC ${spirv-tools_SOURCE_DIR}/include