# HG changeset patch # User Patric Stout # Date 2023-07-07 21:21:43 # Node ID cdce4d13d005640d79d6f158f8b2f936f5ea1a68 # Parent ecb4cdc7450410604d383826f9fbdca0ff85f924 Fix: [Emscripten] actually link against nlohmann_json (#11120) We fake a plain (non-scoped) library, but we don't actually set the library to anything valid. In result, it is never actually linked. diff --git a/os/emscripten/cmake/Findnlohmann_json.cmake b/os/emscripten/cmake/Findnlohmann_json.cmake --- a/os/emscripten/cmake/Findnlohmann_json.cmake +++ b/os/emscripten/cmake/Findnlohmann_json.cmake @@ -15,6 +15,7 @@ if (nlohmann_json_FOUND) INTERFACE_COMPILE_OPTIONS "-sUSE_NLOHMANN_JSON=1" INTERFACE_LINK_LIBRARIES "-sUSE_NLOHMANN_JSON=1" ) + set(nlohmann_json_LIBRARY "nlohmann_json") else() message(WARNING "You are using an emscripten SDK without nlohmann-json support. Please apply 'emsdk-nlohmann_json.patch' to your local emsdk installation.") endif()