For future reference, one can determine what triggered the reconfigure
by doing
make install VERBOSE=1
It appears not to be enough to have configured with
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE.
In our case, for reasons we have not yet figured out, the depend
file for a particular .cu.o object built for a test was what was newer
and causing the rebuild. For so-far not understood reasons, this
.depend file is being touched during the build.
.........JR
On 10/13/2015 8:51 AM, cmake-requ...@cmake.org wrote:
Date: Mon, 12 Oct 2015 17:41:51 -0600
From: JR Cary <c...@txcorp.com>
To: cmake@cmake.org
Subject: [CMake] cmake_check_build_system is causing a rebuild at
"make install"
Message-ID: <561c453f.1070...@txcorp.com>
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.
--
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