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:
Diffstat (limited to 'loader/CMakeLists.txt')
-rw-r--r--loader/CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt
index c542c756d..e46a36725 100644
--- a/loader/CMakeLists.txt
+++ b/loader/CMakeLists.txt
@@ -383,9 +383,15 @@ endif()
include(FindPkgConfig QUIET)
if(PKG_CONFIG_FOUND)
set(VK_API_VERSION "${LOADER_GENERATED_HEADER_VERSION}")
- foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS})
- set(PRIVATE_LIBS "${PRIVATE_LIBS} -l${LIB}")
- endforeach()
+ set(PRIVATE_LIBS "")
+ if (APPLE AND BUILD_STATIC_LOADER)
+ # Libs.private should only be present when building a static loader
+ foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES})
+ list(APPEND PRIVATE_LIBS "-l${LIB}")
+ endforeach()
+ list(REMOVE_DUPLICATES PRIVATE_LIBS)
+ set(PRIVATE_LIBS "Libs.private: ${PRIVATE_LIBS}")
+ endif()
if(WIN32)
if(MINGW)
set(VULKAN_LIB_SUFFIX "-1.dll")