-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: including current src directory into include path #218
Comments
Why is it still not fixed? |
Looks like this repo is in now-permanent hiatus. |
As time goes on and nothing changes it increasingly looks like this repo is dead, and a fork is the only option. More eyes on https://github.com/zlib-ng/zlib-ng would help make the move to the new fork a no-brainer. I've just started testing it and there are a few minor build issues but it's pretty much a drop-in replacement for |
- set ZLIB_INCLUDE_DIR from target properties rather than hardcoding
Hi.
Line 86 of cmakelists is:
However, it does not do what it is actually supposed to do.
CMAKE_SOURCE_DIR
is "The path to the top level of the source tree."While clearly, you want the path to the current src dir, i.e.
CMAKE_CURRENT_SOURCE_DIR
, like it happens inMSVC
case.The difference is, this way, if zlib is used in another project via
add_subdirectory()
, it actually uses it's ownzlib.h
, not the system one:(i added
212121
to/usr/include/zlib.h
to illustrate the point.)The text was updated successfully, but these errors were encountered: