[CMake] cmake is reruning on rebuild

Bill Hoffman bill.hoffman at kitware.com
Wed Feb 18 11:23:47 EST 2009


Bill Hoffman wrote:
> David Cole wrote:
>> Just use Build Solution. Rebuild Solution causes *all* build steps 
>> everywhere to re-run, even when nothing has changed, including the 
>> ones that re-run cmake if a CMakeLists.txt file changes.
>>
>> If you want to start over entirely (effective "Rebuild Solution") then 
>> wipe your binary tree entirely, re-run CMake to generate a new 
>> solution file and open that solution and do "Build Solution".....
>>
> 
> This might be an issue:
> add_subdirectory(../A "${CMAKE_BINARY_DIR}")
> 
> That really should be:
> 
> add_subdirectory(../A A_build)
> 
> I have seen an issue where cmake writes two conflicting build files into 
> that directory.   ${CMAKE_BINARY_DIR} will automatically be added to 
> A_build anyway.
> 
> 

Also, there was a bug in 2.6.2 that caused too many reloads.  Please try 
the 2.6.3 RC 14 from here: http://www.cmake.org/files/v2.6.

-Bill


More information about the CMake mailing list