[Bro-Dev] config.status

Gregor Maier gregor at icir.org
Thu Jan 20 08:12:50 PST 2011

On 1/19/11 21:09 , Robin Sommer wrote:
> I have another feature request regarding the CMake setup. With
> autotools, one gets a config.status file that when run recreates a
> configuration including all the configure options. That's quite
> handy, and not for the least because one can easily check how
> exactly one ran configure last time (prefix, debug enabled, etc.)

> Can we add something like that to the CMake setup? I'm thinking all
> it needs to be is actually the exact configure call written into a
> file and made executable. However, ideally that would not end up in
> the build directory because they it won't survive a make distclean.

Why doesn't the CMakeCache.txt file work? If you run cmake again with an
exisiting CMakeCache.txt it should do exactly that.

Maybe we could add an option to the configure script to just re-run
cmake without changing and settings?

I don't really like to have anything created during build-time that's
not in build. This would be the only file that lives outside of build.
And AFAIK the config.status files get's deleted when you do a "make
distclean". (As it should, since distclean should get you to a the point
you had just after extracting the distribution tarball).

just my 2ct

Gregor Maier
<gregor at icir.org>  <gregor at icsi.berkeley.edu>
Int. Computer Science Institute (ICSI)
1947 Center St., Ste. 600
Berkeley, CA 94704, USA

More information about the bro-dev mailing list