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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
