Parcourir la source

Adapt the ODBC_LIBRARIES for Windows platform based on nanodbc.

Yao Wei Tjong 姚伟忠 il y a 10 ans
Parent
commit
2d9502496b
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      CMake/Modules/FindODBC.cmake

+ 2 - 2
CMake/Modules/FindODBC.cmake

@@ -30,8 +30,8 @@
 #
 
 if (WIN32)
-    set (ODBC_INCLUDE_DIRS)     # The headers should be available in the default include search path
-    set (ODBC_LIBRARIES odbc32) # This should be also the case for MinGW cross-compiler toolchain
+    set (ODBC_INCLUDE_DIRS " ")     # The headers should be available in the default include search path
+    set (ODBC_LIBRARIES odbc32 odbccp32 ws2_32) # This should be also the case for MinGW cross-compiler toolchain
     set (ODBC_DEFINES)
     set (ODBC_VERSION 3)        # Assume it is 3
 else ()