[CMake] SET_TARGET_PROPERTIES LINK_FLAGS not working

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Apr 12 16:15:55 EDT 2007


On 2007-04-12 16:03-0400 Teodor Calin Hanchevici wrote:

> Hi all,
> I have this code and i use nmake generator:
>
> SET_TARGET_PROPERTIES(${NAME} PROPERTIES
>                      OUTPUT_NAME ${NAME}${VERSION}
>                      LINK_FLAGS /nodefaultlib:LIBCMT.lib
>                      LINK_FLAGS /nodefaultlib:MSVCRT.lib)

I am not sure, but I suspect you need to specify just one LINK_FLAGS
followed by a list, that is try

LINK_FLAGS /nodefaultlib:LIBCMT.lib /nodefaultlib:MSVCRT.lib)

or maybe even

LINK_FLAGS "/nodefaultlib:LIBCMT.lib;/nodefaultlib:MSVCRT.lib")

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
-------------- next part --------------
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list