#include nlohmann/json in header file causes "Cannot open source file" error #4351
Unanswered
chinloong93
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Very strange: the same setup works for me. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using CMake with VisualStudio 2022 to build my project.
My CMake file settings look like the following:
When I
#include <nlohmann/json>
into the header file (.h), I get a "Cannot open source file" error. However, this does not occur when I include it into a source file (.cpp). Is there an explanation for this?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions