From 6caf4707bab3c4c064c2fbb43de7101bb14fbe91 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 26 Feb 2011 15:19:05 +0000 Subject: [PATCH] Don't enable libarchive support unless the headers were found --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4237af93e..b23dd3cb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,9 +210,9 @@ if(ENABLE_LIBTUNEPIMP AND TUNEPIMP_LIBRARIES AND TUNEPIMP_INCLUDE_DIRS) set(HAVE_LIBTUNEPIMP ON) endif(ENABLE_LIBTUNEPIMP AND TUNEPIMP_LIBRARIES AND TUNEPIMP_INCLUDE_DIRS) -if(ENABLE_SCRIPTING_ARCHIVES AND ARCHIVE_FOUND) +if(ENABLE_SCRIPTING_ARCHIVES AND ARCHIVE_FOUND AND ARCHIVE_INCLUDEDIR) set(HAVE_LIBARCHIVE ON) -endif(ENABLE_SCRIPTING_ARCHIVES AND ARCHIVE_FOUND) +endif(ENABLE_SCRIPTING_ARCHIVES AND ARCHIVE_FOUND AND ARCHIVE_INCLUDEDIR) if(ENABLE_SCRIPTING_PYTHON AND PYTHONLIBS_FOUND AND PYQT_SIP_DIR) set(HAVE_SCRIPTING_PYTHON ON)