[CMake] set_target_properties questions

David Blado dblado at decarta.com
Thu Dec 21 13:18:55 EST 2006


Hi,

 

So I figured out that CMake puts LINK_FLAGS_DEBUG (and
LINK_FLAGS_<CONFIG>) in the C/C++ tab in MSVC6 and not in the Link tab.

 

I'm assuming that this is not the intended behavior...Is this a known
issue, or should I file a bug for it?

 

Happy Holidays!

 

- David

 

  _____  

From: cmake-bounces+dblado=decarta.com at cmake.org
[mailto:cmake-bounces+dblado=decarta.com at cmake.org] On Behalf Of David
Blado
Sent: Tuesday, December 19, 2006 7:14 PM
To: cmake at cmake.org
Subject: [CMake] set_target_properties questions

 

Hi,

 

I'm using SET_TARGET_PROPERTIES in the following fashion (MSVC6
generator):

 

  SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:libcmt")

 

I tried to use LINK_FLAGS_DEBUG because I have a need to ignore
different libs for different configurations.  I get the following error
when I attempt to use LINK_FLAGS_DEBUG:

 

Command line warning D4002 : ignoring unknown option
'/NODEFAULTLIB:libcmt'

byteswap.c

Compiling...

Command line warning D4002 : ignoring unknown option
'/NODEFAULTLIB:libcmt'

 

And then I get the same message as without setting any target
properties:

 

LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other
libs; use /NODEFAULTLIB:library

 

 

Any ideas?

 

I'm using cmake 2.4.4

 

 

Cheers,


David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20061221/e636bf2c/attachment.html


More information about the CMake mailing list