On Wed, Feb 27, 2008 at 4:51 PM, Robert Fleming < [EMAIL PROTECTED]> 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
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
