diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-02 16:11:02 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-02 16:11:02 (GMT) |
commit | 9d6cec87e093592fe6cc4da666b05faf7f58cb48 (patch) | |
tree | d2bf4e74a82dc54faa9923040f8ec58b1f3a05d2 /Modules | |
parent | 71fee8522efe9eccf1abd3b84239732d4125d442 (diff) | |
download | CMake-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.cmake | 2 |
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 |