[Groonga-commit] groonga/groonga [master] cmake windows: add missing -lws2_32

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 17日 (木) 22:12:16 JST


Kouhei Sutou	2012-05-17 22:12:16 +0900 (Thu, 17 May 2012)

  New Revision: 06d1811c28dfb71e161974062517d804e0cdaabd

  Log:
    cmake windows: add missing -lws2_32

  Modified files:
    CMakeLists.txt
    lib/CMakeLists.txt

  Modified: CMakeLists.txt (+4 -0)
===================================================================
--- CMakeLists.txt    2012-05-17 22:11:18 +0900 (51481fc)
+++ CMakeLists.txt    2012-05-17 22:12:16 +0900 (d7e1e32)
@@ -120,6 +120,10 @@ if(UNIX)
   endif()
 endif()
 
+if(WIN32)
+  ac_check_lib(ws2_32 select)
+endif()
+
 option(WITH_NFKC "use NFKC based UTF8 normalization." ON)
 
 if(WIN32)

  Modified: lib/CMakeLists.txt (+2 -1)
===================================================================
--- lib/CMakeLists.txt    2012-05-17 22:11:18 +0900 (ca4a89f)
+++ lib/CMakeLists.txt    2012-05-17 22:12:16 +0900 (3d13cd0)
@@ -28,6 +28,7 @@ target_link_libraries(libgroonga
   ${PTHREAD_LIBS}
   ${Z_LIBS}
   ${LZO2_LIBS}
-  ${DL_LIBS})
+  ${DL_LIBS}
+  ${WS2_32_LIBS})
 
 install(TARGETS libgroonga DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")




Groonga-commit メーリングリストの案内
Back to archive index