By default, variables (such as CMAKE_C_FLAGS and CMAKE_CXX_FLAGS) open a new nested scope with each subdirectory.  So, any changes you make in a directory will only be seen in that directory and its children, not any parent or sibling directories.<br>
<br>So, in short, you can just do what you were planning to do, it should work fine.<br><br>Ryan<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 9:37 AM,  <span dir="ltr">&lt;<a href="mailto:Michael.Schmidt@l-3com.com">Michael.Schmidt@l-3com.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
My project has third party source in a subdirectory.  The third party<br>
source has to be compiled without special options.  With autoconf, we<br>
had &quot;CFLAGS =&quot;.  How would I do the same with cmake and restore CFLAGS<br>
to their original value in the parent directory?<br>
<br>
Thanks,<br>
Mike<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
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>
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><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>