[CMake] COMPILE_FLAGS on per target and per configuration basis
Ilya Shvetsov
chvetsov at kranx.com
Mon Mar 24 14:20:45 EDT 2008
On Mon, 24 Mar 2008 20:02:27 +0200, Timenkov Yuri
<ytimenkov at parallels.com> wrote:
>> 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"
> )
>
Problem still exist. I need per config type. Because of Visual Studio
Generator I can't write some thing like this:
if (CMAKE_BUILD_TYPE STREQUAL "Final")
...
endif
Because of two targets in on CMakeLists.txt I can't use
CMAKE_CXX_COMPILE_FLAGS.
--
Ilya Shvetsov (mailto:chvetsov at kranx.com)
Lead Programmer
KranX Productions (http://kranx.com/)
More information about the CMake
mailing list