[cmake-developers] [CMake 0014866]: CMake's ENABLE_ACL option does not stop CMake looking for libacl.h

Mantis Bug Tracker mantis at public.kitware.com
Tue Apr 8 08:27:20 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14866 
====================================================================== 
Reported By:                Mike Crowe
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14866
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-04-08 08:27 EDT
Last Modified:              2014-04-08 08:27 EDT
====================================================================== 
Summary:                    CMake's ENABLE_ACL option does not stop CMake
looking for libacl.h
Description: 
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.

Additional Information: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-04-08 08:27 Mike Crowe     New Issue                                    
2014-04-08 08:27 Mike Crowe     File Added: support-disable-libacl.patch        
           
======================================================================



More information about the cmake-developers mailing list