Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/Vulkan-Loader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@ycbcr.xyz>2022-08-30 08:42:27 +0300
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-09-06 20:31:17 +0300
commitb57feee2859e2dd2076b4c36977bf75ac7ac03e3 (patch)
tree1dfcc5e9fe2a61351ec292b98ea8f569aba97678
parentfdfdef6d1b75828c1c3658c867bbbc4adbec956c (diff)
Generate the same DLL name with mingw-w64 as with MSVC
It should be the same name so mingw-w64 toolchains can generate/use the same DLLs as the MSVC toolchains. The DLL and import libraries are compatible both ways. Fixes #997
-rw-r--r--loader/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index 66ad8cc50..95217cfa4 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -239,11 +239,17 @@ if(WIN32)
endif()
# when adding the suffix the import and runtime library names must be consistent
- # mingw: libvulkan-1.dll.a / libvulkan-1.dll
+ # mingw: libvulkan-1.dll.a / vulkan-1.dll
# msvc: vulkan-1.lib / vulkan-1.dll
set_target_properties(vulkan
PROPERTIES
OUTPUT_NAME vulkan-1)
+ if(MINGW)
+ # generate the same DLL with mingw
+ set_target_properties(vulkan
+ PROPERTIES
+ PREFIX "")
+ endif()
if(MSVC AND ENABLE_WIN10_ONECORE)
target_link_libraries(vulkan PRIVATE OneCoreUAP.lib LIBCMT.LIB LIBCMTD.LIB LIBVCRUNTIME.LIB LIBUCRT.LIB)