In our use of cmake on a particular project, we noticed that
after building the project, upon invoking "make install", the
build starts all over again.  Hence we are building the project
twice.

It seems that this is occurring because nearly everything depends
on the target, cmake_check_build_system, which sometimes causes a
reconfiguration, i.e. reinvocation of cmake.  In particular, the
generated Makefile's have:

install: preinstall
...
preinstall: all
...
all: cmake_check_build_system

and then the last target invokes

<cmake bindir>/cmake -H<source dir> -B <build dir> --check-build-system CMakeFiles/Makefile.cmake 0

Sometimes this causes a reconfiguration of our project and
sometimes not.  When it does, the whole project rebuilds because
nearly everything depends on some configure_file generated
config.h files.

How can we tell why this reconfiguring?

BTW, I could not find any of the options, -B, -H, or
--check-build-system at the documentation,
https://cmake.org/cmake/help/v3.3/manual/cmake.1.html.

Thanks for any help.....John Cary
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to