Ticket #2981 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Add option for windows console to CMake

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Iteration 29
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Owen Arnold

Description

There is a bug in CMake that affects generation of the windows console.

Currently we specify the WIN32 option that turns of the console for all modes and have lines such as

set_target_properties( MantidPlot PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE /ENTRY:mainCRTStartup" )

to bring it back. Unfortunately these are ignored with MSVC 2010 generators.

To ensure developers can get a console, as useful Qt debug informatin can show up there, add it as an explicit option in CMake.

Change History

comment:1 Changed 9 years ago by Martyn Gigg

  • Status changed from new to verify
  • Resolution set to fixed

(In [11327]) Fixes #2981. Add an option for a console in CMake (only affects windows).

comment:2 Changed 9 years ago by Owen Arnold

  • Status changed from verify to verifying
  • Tester set to Owen Arnold

comment:3 Changed 9 years ago by Owen Arnold

  • Status changed from verifying to closed

CMake flag correctly configures VS under linker -> System -> SubSystem.

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 3828

Note: See TracTickets for help on using tickets.