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)