[Cmake] Linking libraries in Windows

David Svoboda xsvobod2 at informatics.muni.cz
Thu, 15 Jan 2004 11:42:35 +0100


I'm a bit confused. I tried to link library "WS2_32.Lib" into my project -
therefore I typed a line like:

FIND_LIBRARY(MY_LIB ws2_32 DOC "Path to 'ws2_32' library")

then I ran CMakeSetup a filled the correct path - it corresponds to the
system library path. I made a project file for "MSVC .NET" a I found, that
library "ws2_32.Lib.lib" should be linked! Well, all the libraries in
system directory are named with extension "Lib" (large "L") and when I
changed the ".Lib" to ".lib", everything was OK. On the other hand I
think, that renaming all the system libraries is not the correct way.


David Svoboda

----------------------
Faculty of Informatics, Masaryk University
Botanick=E1 68a, 602 00 BRNO, Czech Republic
e-mail: svoboda at fi.muni.cz
tel: +420-549 494 383