diff options
author | Mike Crowe <mac@mcrowe.com> | 2014-04-08 12:08:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-14 13:34:12 (GMT) |
commit | d9b591790e7cae2042db3b98bf98aa9a83a5cb06 (patch) | |
tree | de26d63adf7602e4dc1252d1ff4051a4c3f2be49 | |
parent | 11a6b3d59ad2f75890fcdc42ec13c7a9ee1463f0 (diff) | |
download | CMake-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.txt | 6 |
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) |