aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2013-03-09 00:12:50 +0000
committerNay <dnpd.dd@gmail.com>2013-03-09 00:12:50 +0000
commitc7463c5f6cd3d882a960eff2cbd414f33ddf0b32 (patch)
treeab23a6a592b381e6b0f2e63ba88fc1e38b90856a /cmake/platform
parent2dbe3d6cfe2d174b5edf9fdb6720fee21c7009d2 (diff)
Buildsystem: Add support for compiling with MinGW on Windows
Tested with: - Windows 8 x64 - MySQL 5.5.30 win32 - OpenSSL 1.0.1c (32 bits) - No PCH - MinGW with GCC 4.7.0 TODO: - Fix compile/link with PCH enabled - Fix compile with WheatyExceptonionReport enabled (ignored for now) - Fix compile of .rc files (ignored for now) - Test with more platforms
Diffstat (limited to 'cmake/platform')
-rw-r--r--cmake/platform/win/settings.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/platform/win/settings.cmake b/cmake/platform/win/settings.cmake
index b66eb2da7bb..c0f724922e3 100644
--- a/cmake/platform/win/settings.cmake
+++ b/cmake/platform/win/settings.cmake
@@ -25,4 +25,8 @@ endif()
# endif()
#endif()
-include(${CMAKE_SOURCE_DIR}/cmake/compiler/msvc/settings.cmake)
+if ( MSVC )
+ include(${CMAKE_SOURCE_DIR}/cmake/compiler/msvc/settings.cmake)
+elseif ( MINGW )
+ include(${CMAKE_SOURCE_DIR}/cmake/compiler/mingw/settings.cmake)
+endif()