diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 261709e5de..bffb6e3819 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -151,7 +151,7 @@ add_library( net/net.h net/net.cpp) # httplib must be put first otherwise external-openssl builds won't work -target_link_libraries(common PRIVATE httplib::httplib) +target_link_libraries(common PUBLIC httplib::httplib) if(WIN32) target_sources(common PRIVATE windows/timer_resolution.cpp windows/timer_resolution.h) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 39aebd5f48..04c0aa8595 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1206,7 +1206,9 @@ else() endif() target_include_directories(core PRIVATE ${OPUS_INCLUDE_DIRS}) -target_link_libraries(core PUBLIC common PRIVATE audio_core hid_core network video_core nx_tzdb tz) +target_link_libraries(core + PUBLIC common + PRIVATE audio_core hid_core network video_core nx_tzdb tz) if (BOOST_NO_HEADERS) target_link_libraries(core PUBLIC Boost::container Boost::heap Boost::asio Boost::process Boost::crc) @@ -1220,7 +1222,7 @@ target_link_libraries(core PRIVATE RenderDoc::API ZLIB::ZLIB) -target_link_libraries(core PUBLIC httplib::httplib zstd::zstd) +target_link_libraries(core PUBLIC zstd::zstd) if (ENABLE_WEB_SERVICE) target_compile_definitions(core PUBLIC ENABLE_WEB_SERVICE) diff --git a/src/qt_common/CMakeLists.txt b/src/qt_common/CMakeLists.txt index a8c4e51240..c8778df331 100644 --- a/src/qt_common/CMakeLists.txt +++ b/src/qt_common/CMakeLists.txt @@ -49,7 +49,7 @@ if (USE_DISCORD_PRESENCE) discord/discord_impl.cpp discord/discord_impl.h ) - target_link_libraries(qt_common PUBLIC DiscordRPC::discord-rpc httplib::httplib) + target_link_libraries(qt_common PUBLIC httplib::httplib DiscordRPC::discord-rpc) if (YUZU_USE_BUNDLED_OPENSSL) target_link_libraries(qt_common PUBLIC OpenSSL::SSL OpenSSL::Crypto) diff --git a/src/web_service/CMakeLists.txt b/src/web_service/CMakeLists.txt index 4e11139f6d..ec58d00da3 100644 --- a/src/web_service/CMakeLists.txt +++ b/src/web_service/CMakeLists.txt @@ -18,5 +18,5 @@ add_library(web_service STATIC create_target_directory_groups(web_service) target_include_directories(web_service PUBLIC ${cpp-jwt_SOURCE_DIR}/include) -target_link_libraries(web_service PRIVATE common network nlohmann_json::nlohmann_json httplib::httplib cpp-jwt::cpp-jwt) +target_link_libraries(web_service PRIVATE httplib::httplib common network nlohmann_json::nlohmann_json cpp-jwt::cpp-jwt) target_link_libraries(web_service PRIVATE OpenSSL::SSL OpenSSL::Crypto)