cmake_modules/platform.cmake
changeset 9210 31fedd5ef878
parent 9151 1d2df388fcc6
child 9211 6235925d0fa1
--- a/cmake_modules/platform.cmake	Wed Jun 12 11:18:20 2013 +0200
+++ b/cmake_modules/platform.cmake	Wed Jun 12 11:27:00 2013 +0200
@@ -73,8 +73,13 @@
 
 endif(APPLE)
 
-if(WINDOWS)
+if(MINGW)
     #this flags prevents a few dll hell problems
     set(CMAKE_C_FLAGS "-static-libgcc ${CMAKE_C_FLAGS}")
-endif(WINDOWS)
+endif(MINGW)
 
+if(WIN32)
+    if(NOT BUILD_SHARED_LIB)
+        message(FATAL_ERROR "Static linking is not supported on Windows")
+    endif()
+endif(WIN32)