View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006438CMakeCMakepublic2008-02-23 14:122016-06-10 14:30
ReporterOswald Buddenhagen 
Assigned ToBill Hoffman 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006438: autoheader equivalent functionality wanted
Descriptionautoheader 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0013663)
Bill Hoffman (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-02-23 14:12 Oswald Buddenhagen New Issue
2008-03-05 19:16 Alex Neundorf Category CCMake => CMake
2008-04-21 18:14 Bill Hoffman Status new => assigned
2008-04-21 18:14 Bill Hoffman Assigned To => Bill Hoffman
2008-10-01 14:23 Bill Hoffman Note Added: 0013663
2016-06-10 14:27 Kitware Robot Note Added: 0041412
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team