diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index a0b9876b3..c6f0619a0 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -172,6 +172,8 @@ ELSE(CMAKE_COMPILER_2005) SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "/MT /O1") SET (CMAKE_C_FLAGS_RELEASE_INIT "/MT /O2") SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/MT /Zi /O2") + SET (CMAKE_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib advapi32.lib rpcrt4.lib" CACHE STRING + "Libraries linked by defalut with all applications.") ELSE(CMAKE_USING_VC_FREE_TOOLS) SET(CMAKE_BUILD_TYPE_INIT Debug) SET (CMAKE_CXX_FLAGS_INIT "/W3 /Zm1000 /GX /GR")