diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-11-03 18:20:14 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-11-03 18:20:14 +0000 |
| commit | 7e93913f18737617ba04a3dd0067420d27a99cf0 (patch) | |
| tree | 75dbb6147659e783d2e26a852db3d82ce42ac934 /Graphics/GraphicsEngineVulkan | |
| parent | Updated GetEngineFactoryVk() and GetEngineFactoryOpenGL() implementations (diff) | |
| download | DiligentCore-7e93913f18737617ba04a3dd0067420d27a99cf0.tar.gz DiligentCore-7e93913f18737617ba04a3dd0067420d27a99cf0.zip | |
Set default visibility to hidden for GraphicsEngineVk-shared project when compiling with Clang and GNU
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt index 09148e3e..d8878ae0 100644 --- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt +++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt @@ -192,6 +192,10 @@ target_link_libraries(GraphicsEngineVk-static PRIVATE ${PRIVATE_DEPENDENCIES} PU target_link_libraries(GraphicsEngineVk-shared PUBLIC GraphicsEngineVk-static) target_compile_definitions(GraphicsEngineVk-shared PUBLIC ENGINE_DLL=1) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR + CMAKE_CXX_COMPILER_ID MATCHES "GNU") + set_target_properties(GraphicsEngineVk-shared PROPERTIES CXX_VISIBILITY_PRESET hidden) # -fvisibility=hidden +endif() if(PLATFORM_WIN32) set(PRIVATE_COMPILE_DEFINITIONS VK_USE_PLATFORM_WIN32_KHR=1 NOMINMAX) |
