MantisBT - CMake
View Issue Details
0006438CMakeCMakepublic2008-02-23 14:122016-06-10 14:30
Oswald Buddenhagen 
Bill Hoffman 
normalfeaturealways
closedmoved 
 
 
0006438: autoheader equivalent functionality wanted
autoheader from autotools creates config.h.in files from configure.ac files, which simplifies creating new config #defines quite a bit.
obviously, cmake should have something similar. ;)
to support putting the variables into particular files, the macros need to allow specifying a file:

check_include_files(unistd.h HAVE_OPENPTY config-pty.h.in "Defined if the system has the openpty() function")
etc.

if the description is omitted, a reasonable one is auto-generated.
if the file is omitted, everything is written to a current file which is set via another macro and defaults to config.h.
No tags attached.
Issue History
2008-02-23 14:12Oswald BuddenhagenNew Issue
2008-03-05 19:16Alex NeundorfCategoryCCMake => CMake
2008-04-21 18:14Bill HoffmanStatusnew => assigned
2008-04-21 18:14Bill HoffmanAssigned To => Bill Hoffman
2008-10-01 14:23Bill HoffmanNote Added: 0013663
2016-06-10 14:27Kitware RobotNote Added: 0041412
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0013663)
Bill Hoffman   
2008-10-01 14:23   
What if there were a command for this?

create_config_file( DEFINE_VARS ${DEFINE_VARS}
                    DEFINE_VALUE_VARS ${DEFINE_VALUE_VARS})

The variables listed in DEFINE_VARS would be done like this:

#cmakedefine VAR

The ones in DEFINE_VALUE would be:
#define VAR @VAR@

// that would allow for 0 to be a value.
(0041412)
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.