diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cddd72e97..b4e261fec9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -424,10 +424,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)