Skip to content

Commit

Permalink
Build: Reduce library scope
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 17, 2023
1 parent 9501439 commit db675cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db675cf

Please sign in to comment.