[CMake] Warning with ccmake 2.8.4

Brad King brad.king at kitware.com
Thu Mar 10 09:46:14 EST 2011


On 03/08/2011 11:17 AM, Andreas Kelle-Emden wrote:
> Am 08.03.2011 17:11, schrieb Brad King:
>> Does it happen even if you don't pass -D... on ccmake's command line
>> when regenerating an existing build tree?
> 
> No, it runs perfectly on an existing tree.

Okay, I can reproduce this:

$ cmake .. -DCMAKE_PREFIX_PATH=/some/prefix
(configures and generates without warning)

$ ccmake .. -DCMAKE_PREFIX_PATH=/some/prefix
(press 'c', 'c', 'g', get the warning)

You are correct that it is because you have to configure twice in ccmake.
The first time it uses CMAKE_PREFIX_PATH in the find_* calls.  The second
time it doesn't use the variable because no new finds are done.  The
report is generated based on what was used during the most recent configure
and generate runs at the end.

This is clearly a bug.  Both ccmake and cmake-gui should clear the list of
manually-specified variables of entries used on *any* configure step.

-Brad


More information about the CMake mailing list