Hi,<br><br><br>How can I determine which parameters have been entered via command line, which come from the script and which from the cache?<br><br>For example:<br>--------<br>MESSAGE(STATUS &quot;TEST (before): ${TEST}&quot;)<br>
SET(TEST &quot;a&quot;)<br>MESSAGE(STATUS &quot;TEST (after):  ${TEST}&quot;)<br>
--------<br>
<br>C:\tmp&gt;cmake . -G&quot;MinGW Makefiles&quot;<br>-- TEST (before):<br>-- TEST (after): a<br>C:\tmp&gt;cmake .<br>-- TEST (before):<br>-- TEST (after): a<br>C:\tmp&gt;cmake -D TEST=b .<br>-- TEST (before): b<br>-- TEST (after): a<br>
C:\tmp&gt;cmake .<br>-- TEST (before): b<br>-- TEST (after): a<br><br>What I want to detect is how the parameter is set. Via the cache (4th step), via the command line (3rd step) or via the script (step 1/2)?<br><br>Can anyone help me with that?<br>
<br><br>Thanks,<br>Steven<br><br><br>