-
Notifications
You must be signed in to change notification settings - Fork 125
CMake-ify git2nrnversion_h.sh
, remove nrnversion.sh
#3473
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
base: master
Are you sure you want to change the base?
Conversation
✔️ 734e9c3 -> artifacts URL |
There are circumstances where |
✔️ f897dd2 -> artifacts URL |
✔️ f897dd2 -> Azure artifacts URL |
There is the
Should be
It should get it from the call to |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3473 +/- ##
==========================================
- Coverage 68.43% 68.39% -0.04%
==========================================
Files 682 682
Lines 116548 116548
==========================================
- Hits 79757 79716 -41
- Misses 36791 36832 +41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
✔️ 2dc51fe -> artifacts URL |
✔️ 2dc51fe -> Azure artifacts URL |
Some facts:
git2nrnversion_h.sh
is to writenrnversion.h
nrnversion.h
contains only macros, which are only visible to the preprocessornrnversion.h
is only included innrnversion.cpp
, which is part of thenrniv_lib
targetTherefore, we can just add the macros from
nrnversion.h
directly to thenrniv_lib
target as compile definitions, without having to write thenrnversion.h
file in the first place.Additionally, the
bldnrnmacpkg.sh
usesnrnversion.sh
, whose sole purpose is to read thenrnversion.h
file (via somesed
magic). On the other hand, we can just usegit describe
to get the latest tag in the history (onrelease/8.2
, this outputs8.2.7
, which is exactly the name of the MacOS package (see here)), sonrnversion.sh
is not needed either.