I'm building libzip [version 1.7.3]. The package uses CMake.
I do the following as initial setup:
wget -c https://github.com/nih-at/libzip/releases/download/v1.7.3/libzip-1.7.3.tar.gz
tar -zxf libzip-1.7.3.tar.gz
cd libzip-1.7.3
mkdir build && cd build
And then I run the following:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
However, Cmake seems unable to find libbz2 as I get the following among the list of messages:
-- Found BZip2: /Library/Frameworks/libbz2.framework (found version "1.0")
I had previously installed libbz2 [and other dependencies like GnuTLS, Nettle, XZ, etc.] in /usr/local
, and I can verify that libbz2.dylib
is in /usr/local/lib
.
I've tried setting CMAKE_PREFIX_PATH
speifically to /usr/local
. And I've also tinkered with FindBZip2.cmake
, but I'm not a CMake expert so I didn't go beyond changing variable assignments [specifically forcing /usr/local
to no avail].
It only works when I delete libbz2.framework
, but that isn't a workable solution.
Is there way around this?
See cmake docs on CMAKE_IGNORE_PATH for more information.