Browse Source

BUG: fix for bug 2488

Bill Hoffman 20 years ago
parent
commit
2dff0978b9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Modules/Platform/Windows-cl.cmake

+ 2 - 0
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")