aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2015-05-04 03:36:02 +0800
committerrakuco <rakuco@FreeBSD.org>2015-05-04 03:36:02 +0800
commitdff9f80cc177050175a46d498432251a15c0e290 (patch)
treeaebe0a0921ce6e9974cfd5bca8c9dcbb22ffbcf5 /devel
parentf54f829bf1e70b560c21da7e04540c534588522b (diff)
downloadfreebsd-ports-gnome-dff9f80cc177050175a46d498432251a15c0e290.tar.gz
freebsd-ports-gnome-dff9f80cc177050175a46d498432251a15c0e290.tar.zst
freebsd-ports-gnome-dff9f80cc177050175a46d498432251a15c0e290.zip
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
Diffstat (limited to 'devel')
-rw-r--r--devel/cmake/files/InitialCache.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/cmake/files/InitialCache.cmake b/devel/cmake/files/InitialCache.cmake
index de214871c9e4..1fd7221f602b 100644
--- a/devel/cmake/files/InitialCache.cmake
+++ b/devel/cmake/files/InitialCache.cmake
@@ -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..")