From db675cf5d0880026b81c47df1a8a6690dcff9b71 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 16 Oct 2023 20:00:33 +1000 Subject: [PATCH] Build: Reduce library scope --- src/common/CMakeLists.txt | 4 ++-- src/util/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 1fb188b85..91b60f0c5 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -62,8 +62,8 @@ add_library(common target_include_directories(common PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..") target_include_directories(common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..") -target_link_libraries(common PUBLIC fmt Threads::Threads vulkan-headers fast_float) -target_link_libraries(common PRIVATE stb libchdr zlib minizip Zstd::Zstd "${CMAKE_DL_LIBS}") +target_link_libraries(common PUBLIC fmt Threads::Threads fast_float) +target_link_libraries(common PRIVATE stb zlib minizip Zstd::Zstd "${CMAKE_DL_LIBS}") if(WIN32) target_sources(common PRIVATE diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt index b2c4e9d61..e46cab111 100644 --- a/src/util/CMakeLists.txt +++ b/src/util/CMakeLists.txt @@ -187,6 +187,7 @@ if(ENABLE_VULKAN) vulkan_texture.h ) target_compile_definitions(util PUBLIC "ENABLE_VULKAN=1") + target_link_libraries(util PUBLIC vulkan-headers) endif() if(ENABLE_SDL2)