summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Crowe <mac@mcrowe.com>2014-04-08 12:08:46 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-14 13:34:12 (GMT)
commitd9b591790e7cae2042db3b98bf98aa9a83a5cb06 (patch)
treede26d63adf7602e4dc1252d1ff4051a4c3f2be49
parent11a6b3d59ad2f75890fcdc42ec13c7a9ee1463f0 (diff)
downloadCMake-d9b591790e7cae2042db3b98bf98aa9a83a5cb06.zip
CMake-d9b591790e7cae2042db3b98bf98aa9a83a5cb06.tar.gz
CMake-d9b591790e7cae2042db3b98bf98aa9a83a5cb06.tar.bz2
libarchive: Skip finding libacl.h when ENABLE_ACL is OFF (#14866)
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index e493966..afb7cea 100644
--- a/Utilities/cmlibarchive/CMakeLists.txt
+++ b/Utilities/cmlibarchive/CMakeLists.txt
@@ -350,7 +350,11 @@ ENDMACRO (LA_CHECK_INCLUDE_FILE)
LA_CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
# Alphabetize the rest unless there's a compelling reason
-LA_CHECK_INCLUDE_FILE("acl/libacl.h" HAVE_ACL_LIBACL_H)
+IF(ENABLE_ACL)
+ LA_CHECK_INCLUDE_FILE("acl/libacl.h" HAVE_ACL_LIBACL_H)
+ELSE(ENABLE_ACL)
+ SET(HAVE_ACL_LIBACL_H FALSE)
+ENDIF(ENABLE_ACL)
LA_CHECK_INCLUDE_FILE("ctype.h" HAVE_CTYPE_H)
LA_CHECK_INCLUDE_FILE("copyfile.h" HAVE_COPYFILE_H)
LA_CHECK_INCLUDE_FILE("direct.h" HAVE_DIRECT_H)