Closed detrout closed 2 months ago
Hi @detrout , the correct variable is actually ZLIB_INCLUDE_DIRS, however, some systems set it incorrectly as ZLIB_INCLUDE_DIR. Nonetheless, I have added a check that if ZLIB_INCLUDE_DIRS can't be found, then we try ZLIB_INCLUDE_DIR.
Hi,
I was trying to do my own conda packaging of bustools and cmake was having trouble finding zlib.h from conda, (and zlib-dev is missing on the host OS)
I'm pretty sure cmake is using "ZLIB_INCLUDE_DIR" instead of ...DIRS.
I think this patch might help building bustools on systems using weird dependency paths like conda, nix, or guix.