~maria-captains/mariadb-native-client/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: holzboote at googlemail
  • Date: 2014-01-11 19:09:32 UTC
  • Revision ID: holzboote@googlemail.com-20140111190932-o4oe0sccjstevmbq
Added mingw support (Win32). Special thanks to Eric Trinh for his patch!

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
###############
29
29
 
30
30
 
31
 
IF(WIN32)
 
31
IF(MSVC)
32
32
  # Speedup system tests
33
33
  INCLUDE(${CMAKE_SOURCE_DIR}/cmake/WindowsCache.cmake)
34
34
  IF (MSVC)
127
127
  SET(HAVE_THREADS 1)
128
128
  ADD_DEFINITIONS(-DHAVE_DLOPEN)
129
129
  ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
130
 
  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996" )
 
130
  IF(MSVC)
 
131
     SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996" )
 
132
  ENDIF()
131
133
ELSEIF()
132
134
  SET(HAVE_THREADS ${CMAKE_USE_PTHREADS})
133
135
ENDIF()
179
181
ENDIF()
180
182
 
181
183
 
182
 
IF(WIN32)
 
184
IF(MSVC)
183
185
 SET(CMAKE_INSTALL_PREFIX "")
184
186
ENDIF()
185
187