[Cmake] CMAKE_STANDARD_LIBRARIES are ignored using studio generator

Bernhard Zach bzach at hyperwave.com
Tue, 20 Apr 2004 13:28:54 +0200


Hi!

It seams that the generators (except the makefile-based ones) ignores the
CMAKE_STANDARD_LIBRARIES variable.

A workaround would be:
IF (CMAKE_GENERATOR MATCHES "Visual Studio 7 .NET 2003")
   LINK_LIBRARIES (user32.lib kernel32.lib ws2_32.lib advapi32.lib)
ENDIF (CMAKE_GENERATOR MATCHES "Visual Studio 7 .NET 2003")

Bernhard