[cmake-developers] [CMake 0013292]: Windows : CMake Does Not Define _CONSOLE When Not Building A Win32 Target
Mantis Bug Tracker
mantis at public.kitware.com
Mon Jun 11 16:24:07 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13292
======================================================================
Reported By: Ryan H. Kawicki
Assigned To:
======================================================================
Project: CMake
Issue ID: 13292
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-06-11 16:24 EDT
Last Modified: 2012-06-11 16:24 EDT
======================================================================
Summary: Windows : CMake Does Not Define _CONSOLE When Not
Building A Win32 Target
Description:
Command add_executable does not define _CONSOLE when WIN32 is not specified.
Expected that final output would have _CONSOLE defined for preprocessor
definitions if WIN32 is not specified and _WINDOWS when WIN32 is specified.
Steps to Reproduce:
Create a very simple test with one single file.
Additional Information:
project(test-console)
add_executable(test test.cpp)
# the generated project has _WINDOWS define when _CONSOLE should be defined.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-06-11 16:24 Ryan H. KawickiNew Issue
======================================================================
More information about the cmake-developers
mailing list