Re: [CMake] How to determine origin of variable

2011-08-26 Thread Martin Weber
Am 25.08.2011 17:54, schrieb David Cole: [...] See this recent bug report for some advice in the notes: http://public.kitware.com/Bug/view.php?id=12340 And this old email on the list that contains basically the same advice: http://www.cmake.org/pipermail/cmake/2007-August/015814.html You can

[CMake] How to determine origin of variable

2011-08-25 Thread Martin Weber
Hi all, is there a way in CMake to detect, whether a variable has been set on the command-line (with the -D option) and not in a CMakelists.txt? For example, GNU-make has the origin function do do something similar. Thanks, Martin -- ☂ E-Mails sollten Text sein, Text und nur Text. Wenn

Re: [CMake] How to determine origin of variable

2011-08-25 Thread Martin Weber
Am 25.08.2011 17:39, schrieb David Cole: On Thu, Aug 25, 2011 at 7:34 AM, Martin Weberm.we...@razorcat.com wrote: Hi all, is there a way in CMake to detect, whether a variable has been set on the command-line (with the -D option) and not in a CMakelists.txt? For example, GNU-make has the

Re: [CMake] How to determine origin of variable

2011-08-25 Thread David Cole
On Thu, Aug 25, 2011 at 11:45 AM, Martin Weber m.we...@razorcat.com wrote: Am 25.08.2011 17:39, schrieb David Cole: On Thu, Aug 25, 2011 at 7:34 AM, Martin Weberm.we...@razorcat.com  wrote: Hi all, is there a way in CMake to detect, whether a variable has been set on the command-line