-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Howard Hinnant's date library with CPM? #148
Comments
Found a solution. Using
What I do not understand, though, is why I have to use |
It depends a lot on the documentation, in this case, the documentation of library you want to use is little. The library is being defined with the name |
Thanks for the clarification @Andres6936 I obviously have to learn more about CMake. |
Added information on how to use the date library with CPM to the wiki. |
I'm trying to use Howard Hinnant's date library with CPM.
This works:
But I have to use
#include "include/date/date.h"
to include the header. I want to get rid of theinclude
part in the#include
path (#include "date/date.h"
).I tried
But cmake complains that target
HowardHinnant_date
is not build in my cmake project. So I changed this into (using the actual target's name (e.g.,myproject
))But still the pre-processor cannot find
date/date.h
in#include "date/date.h"
.The text was updated successfully, but these errors were encountered: