Skip to content
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

Merged
merged 10 commits into from
Nov 11, 2016
Merged

Conversation

jgrewe
Copy link
Member

@jgrewe jgrewe commented Nov 5, 2016

version header is created from the cmake settings. should solve issue #647


# 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")
Copy link
Member

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"
Copy link
Member

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?

Copy link
Member Author

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();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing NIXAPI ;)

Copy link
Member Author

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

@jgrewe jgrewe force-pushed the lib_version branch 4 times, most recently from 1c07e31 to a3171aa Compare November 10, 2016 21:11
@gicmo gicmo merged commit 87c5e6c into G-Node:master Nov 11, 2016
@jgrewe jgrewe deleted the lib_version branch November 12, 2016 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants