Sorry for my misleading answer on this yesterday. Even I, as a CMake developer, was surprised by this.....<br><br><br><div class="gmail_quote">On Tue, Mar 23, 2010 at 8:43 AM, Michael Wild <span dir="ltr"><<a href="mailto:themiwi@gmail.com">themiwi@gmail.com</a>></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;"><div><div></div><div class="h5"><br>
On 23. Mar, 2010, at 13:33 , Brad King wrote:<br>
<br>
> Simmons, Aaron wrote:<br>
>> Am I missing something? The code is below...<br>
>><br>
>> Top-level CMakeLists.txt:<br>
>> cmake_minimum_required(VERSION 2.8)<br>
>> project(test)<br>
>><br>
>> set(src ${CMAKE_CURRENT_SOURCE_DIR}/subdir/test.c)<br>
>><br>
>> add_subdirectory(subdir)<br>
>> get_source_file_property( temp ${src} COMPILE_FLAGS )<br>
><br>
> Due to historical development reasons, source file properties<br>
> are scoped only in the directory where they are set. Only<br>
> targets created by an add_exectuable, add_library, or<br>
> add_custom_target commands in the *same* directory (not even<br>
> a subdirectory) can see the property of a source file.<br>
><br>
> -Brad<br>
<br>
</div></div>Would be nice if that was mentioned somewhere (preferably in the SET_SOURCE_FILES_PROPERTIES docs). Or is it just me not being able to read man-pages once again ;-)<br>
<font color="#888888"><br>
Michael<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>