MantisBT - CMake
View Issue Details
0014866CMakeCMakepublic2014-04-08 08:272014-10-06 10:33
Mike Crowe 
Brad King 
normalminoralways
closedfixed 
DebianGNU/Linux7.2
CMake 2.8.12.2 
CMake 3.1CMake 3.1 
0014866: CMake's ENABLE_ACL option does not stop CMake looking for libacl.h
I'd like to build cmake without including libacl.h even when libacl.h is available. This doesn't appear to be possible because the LA_CHECK_INCLUDE_FILE("acl/libacl.h" HAVE_ACL_LIBACL_H) in Utilities/cmlibarchive/CMakeLists.txt is run even when ENABLE_ACL is zero.
This is required when building cmake-native under OpenEmbedded to avoid sporadic build failures if libacl.h disappears part way through the build.

The attached patch fixes this for me. I can now pass -DENABLE_ACL=0 and libacl.h is not used.
No tags attached.
related to 0014867closed  Not possible to pass options like -DENABLE_ACL through configure when bootstrapping cmake 
patch support-disable-libacl.patch (707) 2014-04-08 08:27
https://public.kitware.com/Bug/file/5123/support-disable-libacl.patch
Issue History
2014-04-08 08:27Mike CroweNew Issue
2014-04-08 08:27Mike CroweFile Added: support-disable-libacl.patch
2014-04-08 08:50Brad KingRelationship addedrelated to 0014867
2014-04-08 08:54Brad KingNote Added: 0035656
2014-04-14 09:35Brad KingNote Added: 0035691
2014-04-14 09:35Brad KingAssigned To => Brad King
2014-04-14 09:35Brad KingStatusnew => resolved
2014-04-14 09:35Brad KingResolutionopen => fixed
2014-04-14 09:35Brad KingFixed in Version => CMake 3.1
2014-04-14 09:35Brad KingTarget Version => CMake 3.1
2014-10-06 10:33Robert MaynardNote Added: 0036971
2014-10-06 10:33Robert MaynardStatusresolved => closed

Notes
(0035656)
Brad King   
2014-04-08 08:54   
Thanks. I will apply this patch soon.

Meanwhile you should be able to use -DHAVE_ACL_LIBACL_H=0 to turn this off.
(0035691)
Brad King   
2014-04-14 09:35   
Applied, thanks:

 libarchive: Skip finding libacl.h when ENABLE_ACL is OFF
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d9b59179 [^]
(0036971)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.