Re: [CMake] Setting target properties

2009-08-27 Thread Philip Lowman
On Thu, Aug 27, 2009 at 3:11 PM, Andrey Maslennikov < andrew.maslenni...@gmail.com> wrote: > My case: I have one file which can be compiled into 4 different binaries > using macros. For this I use add_definitions() and remove_definitions() > commands. But as I understand these commands has global

Re: [CMake] Setting target properties

2009-08-27 Thread Tyler Roscoe
On Thu, Aug 27, 2009 at 11:11:54PM +0400, Andrey Maslennikov wrote: > file. How can I define and undefine macros in *one* CMakeLists file? > > For this case more useful another command - set_target_properties() with > property COMPILE_FLAGS. It really helped me, but I was confronted with > difficu

[CMake] Setting target properties

2009-08-27 Thread Andrey Maslennikov
My case: I have one file which can be compiled into 4 different binaries using macros. For this I use add_definitions() and remove_definitions() commands. But as I understand these commands has global effect in CMakeLists file. How can I define and undefine macros in *one* CMakeLists file? For thi