diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-08-07 18:10:16 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-08-07 18:10:16 (GMT) |
commit | c2d52d74a1a391ce20e26409948d67f857a82783 (patch) | |
tree | be52fb8f28c81b14b435d56e97a132423344741e | |
parent | 773de6e55daa211d0246e0eba1775e07d41bcd43 (diff) | |
download | CMake-c2d52d74a1a391ce20e26409948d67f857a82783.zip CMake-c2d52d74a1a391ce20e26409948d67f857a82783.tar.gz CMake-c2d52d74a1a391ce20e26409948d67f857a82783.tar.bz2 |
BUG: fix for main in a library on windows with nmake
-rw-r--r-- | Modules/Platform/Windows-cl.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-cl.cmake b/Modules/Platform/Windows-cl.cmake index fa246b8..e1e661e 100644 --- a/Modules/Platform/Windows-cl.cmake +++ b/Modules/Platform/Windows-cl.cmake @@ -45,6 +45,8 @@ SET(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> /nologo ${CMAKE_START_TEMP_FILE} <FLAGS> <OBJECTS> /Fe<TARGET> -link <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>${CMAKE_END_TEMP_FILE}") SET(CMAKE_CREATE_WIN32_EXE /subsystem:windows) +SET(CMAKE_CREATE_CONSOLE_EXE /subsystem:console) + # default to Debug builds SET(CMAKE_BUILD_TYPE_INIT Debug) SET (CMAKE_CXX_FLAGS_INIT "/W3 /Zm1000 /GX /GR") |