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 cf7b047286..04c0aa8595 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1167,8 +1167,6 @@ add_library(core STATIC tools/renderdoc.cpp tools/renderdoc.h) -# httplib must be linked before anything because openssl-external -target_link_libraries(core PRIVATE httplib::httplib) if (ENABLE_WIFI_SCAN) target_sources(core PRIVATE internal_network/wifi_scanner.cpp) if (PLATFORM_LINUX) @@ -1208,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) 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)