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

Make helper libraries static and don't install the archive files #2655

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

jougs
Copy link
Contributor

@jougs jougs commented Apr 6, 2023

This fixes #1182 by making libmodels, libnestutil and libnestkernel static libraries that are directly included wherever they are needed. As these are only internal helper libraries, there is no need to install them.

The remaining libraries libnest, libsli and libsli_readline will be taken care of by the PyNEST NG project.

@sanjayankur31: I assume that with these changes, also the VERSION ${NEST_VERSION} line could go away, can't it?

@jougs jougs added S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Apr 6, 2023
@jougs jougs added this to PRs in progress in Kernel via automation Apr 6, 2023
@jougs jougs self-assigned this Apr 6, 2023
@jougs jougs added this to To do in Build system and CI via automation Apr 6, 2023
Copy link
Contributor

@med-ayssar med-ayssar left a comment

Choose a reason for hiding this comment

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

Looks fine to me!

@jougs jougs changed the title Make helper libraries static and link don't install the archive files Make helper libraries static and don't install the archive files Apr 12, 2023
Copy link
Contributor Author

@jougs jougs left a comment

Choose a reason for hiding this comment

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

After checking the changes in #2250 again, I am pretty sure, we don't need the VERSION ${NEST_VERSION} lines anymore now that the libraries are static. @sanjayankur31, feel free to contradict me -- either here or in a follow-up issue or pull request.

libnestutil/CMakeLists.txt Outdated Show resolved Hide resolved
models/CMakeLists.txt Outdated Show resolved Hide resolved
nestkernel/CMakeLists.txt Outdated Show resolved Hide resolved
@jougs jougs merged commit 444bfba into nest:master Apr 12, 2023
1 check passed
Kernel automation moved this from PRs in progress to Done (PRs and issues) Apr 12, 2023
Build system and CI automation moved this from To do to Done Apr 12, 2023
jougs added a commit to jougs/nest-simulator that referenced this pull request Apr 13, 2023
@sanjayankur31
Copy link
Contributor

After checking the changes in #2250 again, I am pretty sure, we don't need the VERSION ${NEST_VERSION} lines anymore now that the libraries are static. @sanjayankur31, feel free to contradict me -- either here or in a follow-up issue or pull request.

Sorry---been away on leave. Yes, versioning is only required for the ones that are being included as shared objects. Bits that are internal static libs don't need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Kernel
  
Done
Development

Successfully merging this pull request may close these issues.

Link helper libraries statically
4 participants