On 06/01/2011 05:51 PM, Benjamin Peterson wrote:
> Is it improper to use add_definitions to set compile flags instead of
> set_source_files_properties and the COMPILE_FLAGS property? The reason I ask 
> is
> that I prefer the recursive behavior of add_definitions, but
> set_source_files_properties appears to be more modern.

Yes, it is considered to be bad practice. If you want the same behavior,
though, use set_directory_properties().

Michael

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to