Explorar o código

BUG: fix for main in a library on windows with nmake

Bill Hoffman %!s(int64=22) %!d(string=hai) anos
pai
achega
c2d52d74a1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Modules/Platform/Windows-cl.cmake

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