diff --git a/CMakeLists.txt b/CMakeLists.txt index 28de5dec47..b8fb0a9d83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -425,10 +425,10 @@ if (zstd_ADDED) add_library(zstd::libzstd ALIAS libzstd_static) endif() -if (NOT YUZU_STATIC_ROOM) - # nlohmann - AddJsonPackage(nlohmann) +# nlohmann +AddJsonPackage(nlohmann) +if (NOT YUZU_STATIC_ROOM) # zlib AddJsonPackage(zlib) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index c7c8bce356..fb2bdda146 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -246,7 +246,7 @@ else() target_link_libraries(common PUBLIC Boost::headers) endif() -target_link_libraries(common PUBLIC Boost::filesystem Boost::context httplib::httplib) +target_link_libraries(common PUBLIC Boost::filesystem Boost::context httplib::httplib nlohmann_json::nlohmann_json) if (lz4_ADDED) target_include_directories(common PRIVATE ${lz4_SOURCE_DIR}/lib)