[CMake] Documentation does not include --check-build-system

Alexander Neundorf a.neundorf-work at gmx.net
Tue Nov 29 12:17:56 EST 2011


On Monday 28 November 2011, J Decker wrote:
> On Mon, Nov 28, 2011 at 12:01 PM, Alexander Neundorf
> 
> <a.neundorf-work at gmx.net> wrote:
> > On Saturday 26 November 2011, J Decker wrote:
> >> I don't find any documentation on the command that cmake uses with a
> >> cmake -E --check-build-system .... Does this option happen to set any
> >> specific cmake variable indicating that it is doing a check build?
> >> 
> >> I'm inquiring and I saw a post about it before
> >> http://www.kwwidgets.org/Bug/view.php?id=2133   (closed)
> >> 
> >> about someone saying it might be nice to be able to bypass the
> >> cmake_check_build_system rule in the makefile.
> >> 
> >> I would like to make building this project a single click interface.
> >> - in the cmake script I can define some options to build all, install
> >> or package during the configure.  But if I do, then the first thing
> >> that is done is the cmake script is processed again (which it already
> >> was), which triggers the make again, which calls cmake, etc.  I could
> >> test to see if's a phase that isn't --check-build-system and do the
> >> command?
> >> 
> >> Also I think I'd really just like to be the last thing done on a
> >> 'generate' in the cmake-gui (not entirely sure what the difference is
> >> between configure and generate).
> > 
> > "Configure" basically processes the CMakeLists.txt, "Generate" then
> > generates the Makefiles/project files.
> 
> Right; but there's apparently no way for a script to know if it is
> being configured or generated?  - or build-checked?

which script do you mean ?
The CMakeLists.txt files ?
They are so to say always processed in the configure-phase.

Alex


More information about the CMake mailing list