<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1476" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=301033409-25112004><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=301033409-25112004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=301033409-25112004><FONT face=Arial size=2>I have tried to use 
GET_CMAKE_PROPERTY to debug my CMakeLists.txt. I used exactly the example in the 
book and placed the code at the end of the main (root) CMakeLists.txt. I do get 
an output file, but it is always empty. GET_CMAKE_PROPERY Seems to return an 
empty list in all cases. I have tried the VARIABLES, CACHE_VARIABLES, COMMANDS 
and MACROS properties, but they are all empty.</FONT></SPAN></DIV>
<DIV><SPAN class=301033409-25112004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=301033409-25112004><FONT face=Arial size=2>This is the 
code:</FONT></SPAN></DIV><PRE><SPAN class=301033409-25112004>FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt "")<BR>GET_CMAKE_PROPERTY(VARS MACROS)<BR>FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt "${VARS}\n")<BR>FOREACH(var ${VARS})<BR>&nbsp; FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt "${var} \"${${var}}\"\n")<BR>ENDFOREACH(var)</SPAN></PRE><PRE><SPAN class=301033409-25112004><FONT face=Arial size=2>What did I do wrong?</FONT></SPAN></PRE>
<DIV><SPAN class=301033409-25112004><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=301033409-25112004><FONT face=Arial size=2>Regards, 
Kris</DIV></FONT></SPAN></BODY></HTML>

<P><B><FONT SIZE=2 FACE="Arial">+-+-+- Email Confidentiality Footer +-+-+-</FONT></B> </P>

<P><FONT SIZE=2 FACE="Arial">Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not print, retain, copy nor disseminate this message or any part of it to anyone and you should notify the sender by reply email and destroy this message. Neglecting this clause could be a breach of confidence. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that are not related to the official business of my firm shall be understood as neither given nor endorsed by it.</FONT></P>