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

Cmake install fix #170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mathstuf
Copy link

No description provided.

When these variables are set in the cache, changing the
CMAKE_INSTALL_PREFIX does not change the directories that actually get
used. Instead, use them if the user provided them via -D, otherwise use
the default based on CMAKE_INSTALL_PREFIX.
zlib is a compile library and its .pc file should live in the library
directory. This allows a 64bit zlib and a 32bit zlib to co-exist in the
same install prefix.
set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "Installation directory for manual pages")
set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" CACHE PATH "Installation directory for pkgconfig (.pc) files")
if (NOT INSTALL_BIN_DIR)
set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
Copy link
Author

Choose a reason for hiding this comment

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

Even better would be to remove ${CMAKE_INSTALL_PREFIX}/ here completely. CMake will add it at install time for any relative path.

Vollstrecker pushed a commit to cmake-remake/zlib that referenced this pull request Nov 30, 2024
Vollstrecker pushed a commit to cmake-remake/zlib that referenced this pull request Nov 30, 2024
@Vollstrecker Vollstrecker mentioned this pull request Dec 11, 2024
@Neustradamus Neustradamus mentioned this pull request Jan 1, 2025
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.

1 participant