MantisBT - CMake
View Issue Details
0014867CMakeCMakepublic2014-04-08 08:372014-10-06 10:33
Mike Crowe 
 
normalminoralways
closedno change required 
DebianGNU/Linux7.2
CMake 2.8.12.2 
 
0014867: Not possible to pass options like -DENABLE_ACL through configure when bootstrapping cmake
I'd like to disable ACL and CursesDialog in the final build when bootstrapping cmake. This isn't currently possible because there is no way to influence cmake_options passed to cmake near the end of the bootstrap script.
The attached patch provides a new "--extra" option to bootstrap so that options can be passed through to cmake. It means that I can now run:


 ./configure --extra=-DENABLE_ACL=0 --extra=-DBUILD_CursesDialog=0
No tags attached.
related to 0014866closed Brad King CMake's ENABLE_ACL option does not stop CMake looking for libacl.h 
patch bootstrap-pass-through.patch (1,588) 2014-04-08 08:37
https://public.kitware.com/Bug/file/5124/bootstrap-pass-through.patch
Issue History
2014-04-08 08:37Mike CroweNew Issue
2014-04-08 08:37Mike CroweFile Added: bootstrap-pass-through.patch
2014-04-08 08:43Nils GladitzNote Added: 0035653
2014-04-08 08:43Brad KingNote Added: 0035654
2014-04-08 08:49Mike CroweNote Added: 0035655
2014-04-08 08:50Brad KingRelationship addedrelated to 0014866
2014-04-08 08:55Brad KingStatusnew => resolved
2014-04-08 08:55Brad KingResolutionopen => no change required
2014-10-06 10:33Robert MaynardNote Added: 0036964
2014-10-06 10:33Robert MaynardStatusresolved => closed

Notes
(0035653)
Nils Gladitz   
2014-04-08 08:43   
Doesn't
  ./configure -- -DBUILD_CursesDialog=0
work?

From the command line help:
  bootstrap [<options>...] [-- <cmake-options>...]
(0035654)
Brad King   
2014-04-08 08:43   
Options after "--" are passed to CMake:

$ ./bootstrap --help |grep Usage
Usage: ./bootstrap [<options>...] [-- <cmake-options>...]
(0035655)
Mike Crowe   
2014-04-08 08:49   
Ah yes, I'd somehow completely failed to spot that. Whoops.

Thanks for your help.

I can't see a way for me to close or revoke this bug report. :(
(0036964)
Robert Maynard   
2014-10-06 10:33   
Closing resolved issues that have not been updated in more than 4 months.