[CMake] should zlib be searched in CMAKE_PREFIX_PATH or am I confused?

Stephen McDowell sjm324 at cornell.edu
Thu Mar 22 13:46:22 EDT 2018


That’s progress though? :)

Hmmm.  I understand your problem now, but I don’t know how to fix it.  You can do things like

   find_package(ZLIB NO_DEFAULT_PATH)

That makes it so the system Zlib won’t be found, but I couldn’t then get `cmake .. -DZLIB_ROOT=xxx` to work :/  There are other NO_* variables mentioned on that page too, maybe one of those and setting CMAKE_PREFIX_PATH could work?  I’m not familiar with these path variables in CMake…



More information about the CMake mailing list