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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to