[CMake] selecting different libraries for different configuration types?
Tyler Roscoe
tyler at cryptio.net
Mon Nov 2 19:02:15 EST 2009
On Mon, Nov 02, 2009 at 06:32:19PM -0500, Roger Dannenberg wrote:
> set_target_properties(mylib-static PROPERTIES CMAKE_C_FLAGS_DEBUG "/MTd")
>
> but the general CMAKE_C_FLAGS_DEBUG variable seems to be determining the
> compiler flags. I can control the flags with CMAKE_C_FLAGS_DEBUG and
> CMAKE_C_FLAGS_RELEASE, but then I get the same flags on both static and
> dynamic versions of the library.
Right idea, wrong property. I think it's COMPILE_FLAGS_<config> but
check the docs.
tyler
More information about the CMake
mailing list