[CMake] newbie - VC++ external link dependency
Jack Andrews
effbiae at gmail.com
Tue Jul 15 04:53:55 EDT 2008
hi guys,
i've got a small library (portlib) that does things including sockets
on linux and windows. my problem is that many executables depend on
this library and it seems that for every executable i also have to add
IF(WIN32)
LINK_LIBRARIES(wsock32 ws2_32 portlib)
ENDIF(WIN32)
that is, on top of portlib, i have to specify windows libs. i can't
seem to work out how i can get away with just:
LINK_LIBRARIES(portlib)
so i tried to add
LINK_LIBRARIES(wsock32 ws2_32)
to the portlib CMakeLists.txt but this didn't work as i hoped.
thanks,
jack
More information about the CMake
mailing list