Closed retifrav closed 2 years ago
Thank you. I'm a bit unavailable for a few days, but will fix this once I'm home.
It was @jrmelsha that introduced this, I don't know why it was commented out, but I have removed the # in the 667a78fbd76c4dedc1fe0bc6c83ea00c3697dbe3. I also fixed the . in the install rule, but I moved json_struct.h into a sub folder so its now under D:/code/json-struct/install/include/json_struct/json_struct.h
I have updated all the tests and examples to use '#include <json_struct/json_struct.h>' This is "less intrusive" I think, and maybe in the future I will split the json_struct.h file into several files.
Good to uncomment that! I need to do a PR from my fork when I get a chance.. Sorry about that!
moved json_struct.h into a sub folder so its now under D:/code/json-struct/install/include/json_struct/json_struct.h
I think this is a good idea, I prefer this approach too.
You have commented out
#include(GNUInstallDirs)
in the rootCMakeLists.txt
, but it actually is required forCMAKE_INSTALL_DATAROOTDIR
, otherwise it defaults to/
, at least it does so in my builds (on Windows, GNU/Linux and Mac OS):And if I uncomment
include(GNUInstallDirs)
, thenCMAKE_INSTALL_DATAROOTDIR
gets a proper value and installation goes correctly:So, I am not sure why you commented it out, maybe there was a good reason, but I decided to let you know about this, just in case.
While we are at it, perhaps you'd want to do something with
.
destination for installinginclude
. It certainly works as it is, but doesn't look entirely correct (D:/code/json-struct/install/./include/json_struct.h
).