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 09:17:51 +0300
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-09-06 20:31:17 +0300
commit688ad64341244e2ed3305780c713c753dd9d9433 (patch)
tree8baae3fad4cf57dfdcb57cc8dc78763274939759
parentb57feee2859e2dd2076b4c36977bf75ac7ac03e3 (diff)
Fix the pkg-config import library name with mingw-w64
The common name for import libraries in mingw-w64 ends with .dll.a so we need to use it so the pkg-config file ends up use -lvulkan-1.dll.
-rw-r--r--loader/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index 95217cfa4..1621f5936 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -338,7 +338,11 @@ if(PKG_CONFIG_FOUND)
set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}")
endforeach()
if(WIN32)
- set(VULKAN_LIB_SUFFIX "-1")
+ if(MINGW)
+ set(VULKAN_LIB_SUFFIX "-1.dll")
+ else()
+ set(VULKAN_LIB_SUFFIX "-1")
+ endif()
# Set libdir path as in cmake's FindVulkan.cmake
# https://github.com/KhronosGroup/Vulkan-Loader/issues/668
if(CMAKE_SIZEOF_VOID_P EQUAL 8)