[CMake] CMake rebuilds every time

David Cole david.cole at kitware.com
Tue Oct 16 11:34:57 EDT 2012


What does your CMakeLists look like?

Only the necessary rebuild steps should be taken on an incremental build.

How do you invoke a rebuild? (Just typing 'make' or some other mechanism?)


On Mon, Oct 15, 2012 at 6:22 AM, Arindam Mukherjee
<arindam.mukerjee at gmail.com> wrote:
> Hi,
>
> I have a cross-platform build setup using cmake 2.8.9 which builds on
> 5 different OSs. However it rebuilds every time even when neither the
> Makefile timestamps nor the source file timastamps had changed.
> Examining the generated Makefiles I can see that all .o, .i and .s
> targets have been marked .PHONY. Don't know if this is the reason for
> it. How to fix this to not rebuild every time but do incremental
> builds?
>
> Thanks,
> Arindam
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list