How to enable C++20 module? #4862
Unanswered
Stevan1996
asked this question in
Q&A
Replies: 1 comment
-
|
MSVC does not yet support modules for this library. See #3970 (comment). There is a ticket at the Visual Studio folks, that should be fixed with the next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
according to the README, the library can be used as a module with
NLOHMANN_JSON_BUILD_MODULES. However, I cannot figure out how exactly this option should be enabled.I installed the package via vcpkg, and I am using CMake in my project. I could not enable the module by adding
set(NLOHMANN_JSON_BUILD_MODULES ON)oroption(NLOHMANN_JSON_BUILD_MODULES "..." ON)to the CMakeLists.txt.Did I misunderstand the usage of
NLOHMANN_JSON_BUILD_MODULES?Beta Was this translation helpful? Give feedback.
All reactions