From eaa5ae9c5561604296912add5f28286ce45e5265 Mon Sep 17 00:00:00 2001
From: Laurent Gomila <laurent.gom@gmail.com>
Date: Sun, 16 Sep 2012 20:12:42 +0200
Subject: [PATCH] disabled the combination of BUILD_SHARED_LIBS and
 SFML_USE_STATIC_STD_LIBS in the build files

---
 CMakeLists.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f7e77a5..4e7605a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,12 @@ endif()
 # define an option for choosing between static and dynamic C runtime (Windows only)
 if(WINDOWS)
     sfml_set_option(SFML_USE_STATIC_STD_LIBS FALSE BOOL "TRUE to statically link to the standard libraries, FALSE to use them as DLLs")
-    
+
+    # the following combination of flags is not valid
+    if (BUILD_SHARED_LIBS AND SFML_USE_STATIC_STD_LIBS)
+        message(FATAL_ERROR "BUILD_SHARED_LIBS and SFML_USE_STATIC_STD_LIBS cannot be used together")
+    endif()
+
     # for VC++, we can apply it globally by modifying the compiler flags
     if(COMPILER_MSVC AND SFML_USE_STATIC_STD_LIBS)
         foreach(flag