summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-10-02 16:11:02 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-10-02 16:11:02 (GMT)
commit9d6cec87e093592fe6cc4da666b05faf7f58cb48 (patch)
treed2bf4e74a82dc54faa9923040f8ec58b1f3a05d2 /Modules
parent71fee8522efe9eccf1abd3b84239732d4125d442 (diff)
downloadCMake-9d6cec87e093592fe6cc4da666b05faf7f58cb48.zip
CMake-9d6cec87e093592fe6cc4da666b05faf7f58cb48.tar.gz
CMake-9d6cec87e093592fe6cc4da666b05faf7f58cb48.tar.bz2
BUG: fix for 5705, link in standard libs for mingw
Diffstat (limited to 'Modules')
-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