On Tuesday, October 12, 2010, John Drescher wrote:
> On Tue, Oct 12, 2010 at 8:58 AM, Mr Shore <shore.cl...@gmail.com> wrote:
> > Can I restrict the scope so that this setting is only for one specific
> > target?
> 
> If the targets are all in 1 CMakeLists.txt I am not sure how to do
> that. I am not saying its not possible I just never had to look into
> that since every project I create is in its own folder /
> CMakeLists.txt file.

Try:
                set_target_properties (<target> PROPERTIES
                                       COMPILE_FLAGS "..." LINK_FLAGS "...")

where <target> is the name of your target, of course.

Cheers

        Daniel
_______________________________________________
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