Don't enable libarchive support unless the headers were found

This commit is contained in:
David Sansome 2011-02-26 15:19:05 +00:00
parent 2b08d27a88
commit 6caf4707ba
1 changed files with 2 additions and 2 deletions

View File

@ -210,9 +210,9 @@ if(ENABLE_LIBTUNEPIMP AND TUNEPIMP_LIBRARIES AND TUNEPIMP_INCLUDE_DIRS)
set(HAVE_LIBTUNEPIMP ON) set(HAVE_LIBTUNEPIMP ON)
endif(ENABLE_LIBTUNEPIMP AND TUNEPIMP_LIBRARIES AND TUNEPIMP_INCLUDE_DIRS) 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) 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) if(ENABLE_SCRIPTING_PYTHON AND PYTHONLIBS_FOUND AND PYQT_SIP_DIR)
set(HAVE_SCRIPTING_PYTHON ON) set(HAVE_SCRIPTING_PYTHON ON)