CMake Interface project - doesn't build with gcc Linux #4673
TS-RyanShear
started this conversation in
General
Replies: 2 comments
-
https://github.com/nlohmann/json?tab=readme-ov-file#cmake says to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
I read that as well. I was hoping to keep this project as just an interface project, and haven't really thought of converting to a traditional library. Setting the value to private breaks the CMake interpreter for both Windows and Linux.
I brought it up due to it being successfully used in Windows and not Linux, backwards from my experiences. |
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
-
Working on a cross compilation project. Project builds, runs and works as expected compiling with MSVC. Switching over to gcc (Ubuntu system), when I run make I get this error:
I'm using CMake / VCPKG for my project.
The project it fails on is an INTERFACE project, which I just have a couple of header files to help define behavior, as interfacing intended. This project compiles with no warning or errors with msvc. Is there something special I need to handle for the Linux adaption of it?
here is my cmake file:
Any help is greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions