summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-03 21:57:22 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-03 21:57:22 +0000
commitb7b840676c4a77d748e93624edaabd389e359ac5 (patch)
tree3532bb5ec78dea0bfa96fbb9c513623cef3e9291 /Graphics/GraphicsEngineVulkan
parentFixed formatting (diff)
downloadDiligentCore-b7b840676c4a77d748e93624edaabd389e359ac5.tar.gz
DiligentCore-b7b840676c4a77d748e93624edaabd389e359ac5.zip
Disallowed missing direct and indirect dependencies when linking GL and VK shared libs on Linux (fixed https://github.com/DiligentGraphics/DiligentCore/issues/119)
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
index a8669ae5..9300a081 100644
--- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt
+++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
@@ -217,6 +217,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# as hiding is intended
target_compile_options(Diligent-GraphicsEngineVk-static PRIVATE -Wno-overloaded-virtual)
target_compile_options(Diligent-GraphicsEngineVk-shared PRIVATE -Wno-overloaded-virtual)
+elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
+ set_target_properties(Diligent-GraphicsEngineVk-shared PROPERTIES
+ # Disallow missing direct and indirect dependencies to enssure that .so is self-contained
+ LINK_FLAGS "-Wl,--no-undefined -Wl,--no-allow-shlib-undefined"
+ )
endif()
if(PLATFORM_WIN32)