Open
Conversation
cf9e0ab to
c842f54
Compare
mojca
reviewed
Aug 29, 2024
This uses `find_package(ZLIB)` when building from source to optionally avoid the submodule and use an installed zlib instead.
When specifying `DESTINATION lib`, all files get installed there, also the headers, therefore don't specify it so that files get installed in their default location instead. Also include GNUInstallDirs to make the installation paths configurable using standard CMake variables CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR.
c842f54 to
a3932ea
Compare
Author
|
I also added a 3rd commit to install the missing headers also. pplib.h includes the other headers, so it needs them. I'm not sure if this is a good solution though. |
Contributor
|
Thanks a lot. The changes are "not so elegant", but at least they don't affect builds on old systems. I did not test anything yet, but I believe that this could be merged once it gets tested. Personally I would suggest to put the list of headers into a separate PR, so that these can be merged independent from each other. @paweljackowski, can you please take a look at this MR? |
a3932ea to
d06b165
Compare
Author
|
I separated the third commit into its own PR: #6 |
paweljackowski
approved these changes
Sep 9, 2024
Collaborator
paweljackowski
left a comment
There was a problem hiding this comment.
I neither use nor can verify changes in cmakefiles. If the change works for you, perfectly ok for me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes allow to easier build this standalone.