From 09e485dcad6108aec6cef4d7d8fd331dc016e3ac Mon Sep 17 00:00:00 2001 From: wowzaman12 Date: Thu, 21 May 2015 18:42:02 +0000 Subject: [PATCH] some changes regarding static building via mingw --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b119e26b..ca535a08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,9 @@ FIND_PACKAGE ( OpenGL REQUIRED ) FIND_PACKAGE ( SDL REQUIRED ) if( ENABLE_LINK ) + if( WIN32 ) + set(SFML_STATIC_LIBRARIES TRUE) + endif( WIN32 ) FIND_PACKAGE ( SFML 2 COMPONENTS network system ) endif( ENABLE_LINK ) # set the standard libraries all ports use