[CMake] library
Philip Lowman
philip at yhbt.com
Wed Feb 27 20:09:07 EST 2008
On Wed, Feb 27, 2008 at 4:51 PM, Robert Fleming <
robert.fleming.multigen at gmail.com> wrote:
> To solve the first problem I did:
>
> set_target_properties(rtf PROPERTIES LINK_FLAGS "/NODEFAULTLIB:msvcrt")
>
> Not sure if this is the best way. You'll want to wrap it with some
> conditional statements checking you're on windows, probably.
>
> Also, if you just want to ignore a library in debug, you can do
> LINK_FLAGS_DEBUG I believe.
For better portability (i.e. to MinGW) you probably want something like
this:
IF(MSVC)
SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:foo.lib/NODEFAULTLIB:
bar.lib")
# etc.
ENDIF(MSVC)
--
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080227/819135ce/attachment.html
More information about the CMake
mailing list