Re: [CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-03 Thread Brad King
Alexander Neundorf wrote: This sees the variable is already in the cache, but without meta info and adds it using AddCacheDefinition(). After this call, makefile-GetDefinition(FOO) returns an empty string, before this call it still returns foo. It's not the empty string in find_program()'s

Re: [CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-03 Thread Alexander Neundorf
On Wednesday 03 March 2010, Brad King wrote: Alexander Neundorf wrote: This sees the variable is already in the cache, but without meta info and adds it using AddCacheDefinition(). After this call, makefile-GetDefinition(FOO) returns an empty string, before this call it still returns foo.

Re: [CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-03 Thread Brad King
Alexander Neundorf wrote: On Wednesday 03 March 2010, Brad King wrote: http://www.cmake.org/Bug/view.php?id=9008 Should I add this testcase to #9008 ? Yes, please. -Brad ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Weird behaviour of mark_as_advanced(), find_program() and the cache

2010-03-02 Thread Alexander Neundorf
Hi, attached is a short CMakeLists.txt which shows a strange behaviour of mark_as_advanced(), find_program() and the cache. What it does is the following: it sets a variable FOO to foo, then marks it as advanced (although it is not in the cache), then does a find_program() on the variable,