Skip to content

Conversation

@jmairboeck
Copy link

These changes allow to easier build this standalone.

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.
@jmairboeck
Copy link
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.

@mojca
Copy link
Contributor

mojca commented Aug 29, 2024

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?

@jmairboeck
Copy link
Author

I separated the third commit into its own PR: #6

Copy link
Collaborator

@paweljackowski paweljackowski left a comment

Choose a reason for hiding this comment

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

I neither use nor can verify changes in cmakefiles. If the change works for you, perfectly ok for me.

paweljackowski

This comment was marked as duplicate.

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.

3 participants