#include nlohmann/json in header file causes "Cannot open source file" error #4351
Unanswered
chinloong93
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Very strange: the same setup works for me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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