[CMake] COMPILE_FLAGS on per target and per configuration basis
Timenkov Yuri
ytimenkov at parallels.com
Mon Mar 24 14:02:27 EDT 2008
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"
)
More information about the CMake
mailing list