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
_______________________________________________
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

Reply via email to