Adjust module “FindZLIB.cmake”
I tried to build the software component “karchive” within an openSUSE Tumbleweed system. A dependency detection failure was reported for the library “zlib” here. Thus I took another look also at the script “FindZLIB.cmake”.
The package “zlib-devel 1.2.11-18.1” of the involved software distribution provides also the files “/usr/lib64/libz.so” and “/usr/lib64/pkgconfig/zlib.pc”.
I imagine that further adjustments will be helpful.
- The file search can eventually be performed by the means of the tool “pkgconf”.
- Otherwise:
- The text “libz” can be added to the variable “
ZLIB_NAMES
”, can't it? - The directory “lib64” can be added behind the parameter “
PATH_SUFFIXES
”.
- The text “libz” can be added to the variable “
- Should calls of the find_library command depend on the configured build type?
By the way:
- I propose to delete the variable “
_ZLIB_x86
” because the text “(x86)” can be directly used instead. - Is a specification like “
[HKEY_LOCAL_MACHINE
…” relevant only for build environments according to “Windows”? - How do you think about to use the comment “
variables are
” instead of “variable are
”? - Would you like to explain the variable “
ZLIB_LIBRARY
” in the documentation section “Hints
”?