Set LIBLZMA_INCLUDE_DIR and LIBLZMA_LIBRARY in the initial cache.

Do it so that we can hardcode these variables to point to base's liblzma,
otherwise the liblzma.so installed by archivers/lzmalib will be chosen if
present and the configuration process will fail.

This is done only so that `make configure' works, as liblzma is only used if
we build CMake's bundled libarchive.

MFH:		2015Q2
This commit is contained in:
Raphael Kubo da Costa 2015-05-03 19:36:02 +00:00
parent bc752855a7
commit eb4a9c77b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385307

View file

@ -4,3 +4,13 @@
# devel/qt4-corelib is not).
# See https://mail.kde.org/pipermail/kde-freebsd/2013-July/015703.html
set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
# Force CMake to look for base's liblzma, otherwise the configuration process
# will fail if archivers/lzmalib is installed, as CMake will try to use its
# liblzma.so.
# Note that this is necessary only for `make configure' to work, as liblzma is
# only ever used if CMake's bundled libarchive is being used.
set(LIBLZMA_INCLUDE_DIR "/usr/include" CACHE PATH
"Directory where LibLZMA headers are located.")
set(LIBLZMA_LIBRARY "/usr/lib/liblzma.so" CACHE PATH
"LibLZMA library to link against..")