summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-14 04:40:06 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-14 04:40:06 +0000
commit5cf46bc3a97cd476fbf506076f7123594410ea03 (patch)
tree3c700104e4b243c5627f86606590f6878540468c /Graphics/GraphicsEngineVulkan
parentFew more changes to support MinGW build (diff)
downloadDiligentCore-5cf46bc3a97cd476fbf506076f7123594410ea03.tar.gz
DiligentCore-5cf46bc3a97cd476fbf506076f7123594410ea03.zip
Another couple of updates to GL and VK backend CMake files to fix MinGW build
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
index 4e56087f..c5d7b78e 100644
--- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt
+++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
@@ -152,7 +152,7 @@ add_library(GraphicsEngineVk-shared SHARED
readme.md
)
-if(PLATFORM_WIN32 AND MSVC)
+if(MSVC)
target_sources(GraphicsEngineVk-shared PRIVATE
src/DLLMain.cpp
src/GraphicsEngineVk.def
@@ -202,13 +202,16 @@ if(PLATFORM_WIN32)
elseif(PLATFORM_LINUX)
set(PRIVATE_COMPILE_DEFINITIONS VK_USE_PLATFORM_XCB_KHR=1)
else()
- message(FATAL_ERROR "Unknwon platform")
+ message(FATAL_ERROR "Unknown platform")
endif()
target_compile_definitions(GraphicsEngineVk-shared PRIVATE ${PRIVATE_COMPILE_DEFINITIONS})
target_compile_definitions(GraphicsEngineVk-static PRIVATE ${PRIVATE_COMPILE_DEFINITIONS})
if(PLATFORM_WIN32)
+ # Do not add 'lib' prefix when building with MinGW
+ set_target_properties(GraphicsEngineVk-shared PROPERTIES PREFIX "")
+
# Set output name to GraphicsEngineVk_{32|64}{r|d}
set_dll_output_name(GraphicsEngineVk-shared GraphicsEngineVk)