diff options
author | Brad King <brad.king@kitware.com> | 2014-04-15 14:22:30 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-04-15 14:22:30 (GMT) |
commit | e13ff189d1901091647981cbe42a392d9f97c984 (patch) | |
tree | 8b9769851c9554de47c5f1f5f8be3b46dc1c526d | |
parent | 4966c62f316de1ea8e6af53f0dc85686c7d56c3d (diff) | |
parent | d9b591790e7cae2042db3b98bf98aa9a83a5cb06 (diff) | |
download | CMake-e13ff189d1901091647981cbe42a392d9f97c984.zip CMake-e13ff189d1901091647981cbe42a392d9f97c984.tar.gz CMake-e13ff189d1901091647981cbe42a392d9f97c984.tar.bz2 |
Merge topic 'libarchive-no-acl'
d9b59179 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) |