summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-gcc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/Windows-gcc.cmake')
-rw-r--r--Modules/Platform/Windows-gcc.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake
index fdd5002..73c10c1 100644
--- a/Modules/Platform/Windows-gcc.cmake
+++ b/Modules/Platform/Windows-gcc.cmake
@@ -29,6 +29,8 @@ SET(CMAKE_CREATE_WIN32_EXE "-mwindows")
IF(MINGW)
SET(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
+ SET (CMAKE_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32")
+ SET(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
ENDIF(MINGW)
SET(CMAKE_GNULD_IMAGE_VERSION