[CMake] Problem building CMake with system OPENSSL
Brad King
brad.king at kitware.com
Tue Jun 7 15:13:26 EDT 2016
On 06/07/2016 10:58 AM, Lowekamp, Bradley (NIH/NLM/LHC) [C] wrote:
> I tried out the 3.6.0-rc1 and my problem building CMake still exists.
Thanks for testing it.
> (cd /tmp/cmake-build && \
> ../cmake-3.6.0-rc1/bootstrap && \
> make -j 10 && \
> ./bin/cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_USE_OPENSSL:BOOL=ON -DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl . && \
> make -j${NPROC} && \
> make install)
That script causes CMake to be configured with itself the second time
instead of the bootstrap script. You should be able to pass the config
options directly to bootstrap:
../cmake-3.6.0-rc1/bootstrap --parallel=${NPROC} -- \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_USE_OPENSSL:BOOL=ON \
-DOPENSSL_ROOT_DIR:PATH=/usr/local/ssl &&
make -j ${NPROC} &&
make install
> In file included from /tmp/cmake-3.6.0-rc1/Utilities/cmlibarchive/libarchive/archive_read_support_format_zip.c:58:0:
> /tmp/cmake-3.6.0-rc1/Utilities/cmlibarchive/libarchive/archive_cryptor_private.h:102:25: fatal error: openssl/evp.h: No such file or directory
This should fix it:
libarchive: Restore OpenSSL include directory from upstream
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dbc9f73d
I've queued this for merge to 'release' for 3.6.0-rc2.
-Brad K
More information about the CMake
mailing list