<div dir="ltr"><div>Hi James.<br><br></div>Quoting the docs at <a href="http://www.cmake.org/cmake/help/v2.8.12/cmake.html">http://www.cmake.org/cmake/help/v2.8.12/cmake.html</a>:<br><br>"""<br><pre>get_property(<variable><br>
               <GLOBAL             |<br>                DIRECTORY [dir]    |<br>...<br><br>DIRECTORY scope defaults to the current directory but another directory 
(already processed by CMake) may be named by full or relative path.<br><br>...<br><br>VARIABLE scope is unique and does not accept a name.<br><br><span style="font-family:arial,helvetica,sans-serif">"""<br>
<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">When you pass VARIABLE as the argument, it will query the value/setness/definedness of the variable specified by 'PROPERTY name'.<br><br></span></pre>
<pre><span style="font-family:arial,helvetica,sans-serif">So in effect:<br><br>get_property(foo VARIABLE PROPERTY bar)<br><br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">is equivalent to<br><br>
</span></pre><pre><span style="font-family:arial,helvetica,sans-serif">set(foo ${bar})<br><br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">Hope this helps.<br><br>Petr<br></span></pre></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Apr 16, 2014 at 9:35 PM, James Bigler <span dir="ltr"><<a href="mailto:jamesbigler@gmail.com" target="_blank">jamesbigler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I see that I can get the value of a variable from a directory using:<div><br></div><div><div>get_directory_property(sub1_val1 DIRECTORY sub1 DEFINITION val1)</div></div><div><br></div><div>Can I do the same thing with get_property?</div>


<div><br></div><div>I see a VARIABLE entry, but I can't use that with the DIRECTORY indication.</div><div><br></div><div>By the way what are the properties on VARIABLE that can be queried?  I don't see any documentation for this question.</div>


<div><br></div><div>get_property(... VARIABLE PROPERTY ???)</div><div><br></div><div>Thanks,</div><div>James</div></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>