[CMake] Finding WS2 library on Windows Vista

Di Zou di_zou at yahoo.com
Fri Jul 2 13:56:02 EDT 2010


I am trying to use CMake to find WS2_32.dll on Windows Vista. For me, the dll is located in C:/Program Files/Microsoft SDKs/Windows/v6.0A/Lib. So I use the command: 
FIND_LIBRARY(WS2 NAMES WS2_32 PATHS "C:/Program Files/Microsoft SDKs/Windows/*" "C:/Program Files/Microsoft SDKs/Windows/*/*")
This command works on my computer, but I would like to make it more generic. I tried FIND_PACKAGE(WS2 REQUIRED) but that did not find anything. Is there a module available to find the WS2_32.dll? Also, is there a default or common location for WS2_32.dll?



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100702/6ca8eb24/attachment.htm>


More information about the CMake mailing list