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

Missing zlib.h in CMake built directory #899

Open
donmor opened this issue Dec 19, 2023 · 1 comment
Open

Missing zlib.h in CMake built directory #899

donmor opened this issue Dec 19, 2023 · 1 comment

Comments

@donmor
Copy link

donmor commented Dec 19, 2023

I created build directory outsides the source dir and executed cmake /path/to/zlib then make zlibstatic there. Then I found there's no zlib.h in the build directory.

@witte
Copy link

witte commented Sep 30, 2024

hi donmor,

This is expected behavior, the headers don't need to be there after build, only after installing the library. So, if you do:

cd /path/to/zlib
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/install/zlib
cmake --build .
cmake --install .

then /path/to/install/zlib will have the proper folder structure with both binary and headers.

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