On Monday 24 March 2008 20:42:46 Ilya Shvetsov wrote:
>       Hi, all.
>
> I need define some compile flags for my targets. This flags deepend on
> config tipe.
> With LINK_FLAGS I can do this very simple. I can write just
>
> set_target_properties(target1 PROPERTIES
>       LINKER_FLAGS_FINAL "some flags for target1")
> set_target_properties(target2 PROPERTIES
>       LINKER_FLAGS_FINAL "some flags for target2")
>
>
> May be exist some way do the same with COMPILE_FLAGS ?
I do it following way:
set_source_files_properties(
        ${MyTarget_SRCS}
        PROPERTIES COMPILE_FLAGS "/J /Zc:wchar_t"
        )

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to