MantisBT - CMake
View Issue Details
0004194CMakeCMakepublic2006-12-12 05:082016-06-10 14:30
axel.roebel 
Bill Hoffman 
lowfeaturealways
closedmoved 
 
 
0004194: support configure compatible command line flags
After a long discussion in may/june 2006
that took place on the cmake mailing list
under the topic
 [CMake] Re: a ./configure shell script stub
we somehow concluded that the end user
interface would be improved if cmake would support a limited number of addtional
command line switches that would allow a
simplified control of the
configuration. The extension of the command line interface options and there mapping to internal cmake variables are

--prefix=PP -> -DCMAKE_INSTALL_PREFIX:PATH=PP
--verbose -> -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
--build=bt -> -DCMAKE_BUILD_TYPE:STRING=bt

thnaks
No tags attached.
has duplicate 0009661closed Bill Hoffman Please add --prefix and other shorthand cmdline args 
Issue History
2013-11-02 10:24Stephen KellyRelationship addedhas duplicate 0009661
2016-06-10 14:27Kitware RobotNote Added: 0041336
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0006172)
Claus Klein   
2007-01-15 02:49   
Note: --build from autoconf is not the same as CMAKE_BUILD_TYPE:

./configure --help
Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help display this help and exit
      --help=short display options specific to this package
      --help=recursive display the short help of all the included packages
  -V, --version display version information and exit
  -q, --quiet, --silent do not print `checking...' messages
      --cache-file=FILE cache test results in FILE [disabled]
  -C, --config-cache alias for `--cache-file=config.cache'
  -n, --no-create do not create output files
      --srcdir=DIR find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
                          [PREFIX]

...

System types:
  --build=BUILD configure for building on BUILD [guessed]
  --host=HOST cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET configure for building compilers for TARGET [HOST]

see too:
http://www.gnu.org/software/autoconf/manual/html_node/System-Type.html#System-Type [^]
(0041336)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.