[CMake] SET_TARGET_PROPERTIES LINK_FLAGS not working
Teodor Calin Hanchevici
calin.hanchevici at gmail.com
Thu Apr 12 17:11:38 EDT 2007
Alan, this does not work either,
LINK_FLAGS "/nodefaultlib:LIBCMT.lib;/nodefaultlib:MSVCRT.lib"
it always picks the first one
On 4/12/07, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
>
> 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
> __________________________
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070412/eef26f1b/attachment.html
More information about the CMake
mailing list