-
Notifications
You must be signed in to change notification settings - Fork 116
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 NRN_VERSION_* test macros for VERBATIM. #1762
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1762 +/- ##
==========================================
+ Coverage 45.43% 45.49% +0.06%
==========================================
Files 551 551
Lines 113149 113149
==========================================
+ Hits 51405 51476 +71
+ Misses 61744 61673 -71
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
This all seems sound to me. Do we want to generate installer names using the major.minor.patch info? ...with maybe the hash portion of git describe as a distinction guarantee.
904ec5a
to
b0917f9
Compare
If I understand correctly, these are currently generated from |
ef5c20e
to
b4ffe5c
Compare
That sufficiently penetrates my fogginess. I guess my model so far is that 8.2.dev is a general indicator in the master and new PRs of ongoing work from bug fix to indefinite future extension. |
It occurs to me that in addition to the current content, I should add define one extra macro #ifndef NRN_VERSION_GTEQ_8_2
/* version is < 8.2 */
#endif in all versions, including ones that predate this PR. #if !defined(NRN_VERSION_GTEQ)
/* version that didn't include #1762, have to consult the docs to find out that that means < 8.2 */
#endif |
Done in 46628c0ed7c68710bbf2bf9300a17c50a9f1db42. |
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.
some minor suggestion otherwise LGTM
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.
LGTM
- Add some CMake checks to ensure that `git describe` is consistent with the project version set in the CMake project(...) function. - Update that version to 8.2.0 as the current master's parent tag is 8.2.dev. - Generate a header containing preprocessor macros for the major, minor and patch version numbers. - Add a header that defines various NRN_VERSION_* macros that can be used to make VERBATIM blocks compatible across NEURON versions. - Update CoreNEURON submodule to pick up an equivalent change. - Add a test to NEURON that covers both NEURON and CoreNEURON implementations of the macros.
2646a64
to
23ef82c
Compare
The last commit message is not very helpful, as well as moving some CMake code I updated the docs a bit: 23ef82c#diff-6f397e8031813274e13f3fa38bba80cd28fc9c40895a3ac6d225d9dbec7c0359 |
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.
LGTM
git describe
is consistent with the project version set in the CMakeproject(...)
function.8.2.dev
.NRN_VERSION_*
macros that can be used to makeVERBATIM
blocks compatible across NEURON versions.TODO: