-
Notifications
You must be signed in to change notification settings - Fork 36
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
add static method for library version to File #649
Conversation
|
||
# add the binary tree to the search path for include files | ||
# so that we will find version.h | ||
include_directories("${PROJECT_BINARY_DIR}/include/nix") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we are change that to include_directories("${PROJECT_BINARY_DIR}/include/")
and then later on include <nix/libversion.hpp>
.
@@ -16,6 +16,7 @@ | |||
#include <nix/Platform.hpp> | |||
|
|||
#include <nix/valid/validate.hpp> | |||
#include "libversion.hpp" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move this include to nix/Version.hpp
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you shift the version method to Version.hpp as well?
* | ||
* @return the version as a vector<int> in the order major, minor, patch | ||
*/ | ||
std::vector<int> apiVersion(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing NIXAPI
;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not merge, I will rebase once I have that fixed
1c07e31
to
a3171aa
Compare
version header is created from the cmake settings. should solve issue #647