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

Install path only set on first configuration run #444

Closed
straubar opened this issue Sep 4, 2019 · 1 comment
Closed

Install path only set on first configuration run #444

straubar opened this issue Sep 4, 2019 · 1 comment

Comments

@straubar
Copy link

straubar commented Sep 4, 2019

The following set-statements in the cmake file set the install paths using the cmake install prefix:

set(INSTALL_BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "[...]")
set(INSTALL_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "[...]")
set(INSTALL_INC_DIR "${CMAKE_INSTALL_PREFIX}/include" CACHE PATH "[...]")
set(INSTALL_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE PATH "[...]")
set(INSTALL_PKGCONFIG_DIR "${CMAKE_INSTALL_PREFIX}/share/pkgconfig" CACHE PATH "[...]")

However, as they are cached, a change of CMAKE_INSTALL_PREFIX does not lead to a change of the install paths. Especially when using a GUI and setting the install prefix in the second configuration run, zlib is installed into the wrong directory.

@madler
Copy link
Owner

madler commented Feb 2, 2025

See #1027 .

@madler madler closed this as completed Feb 2, 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

No branches or pull requests

2 participants