Author: jgardou
Date: Sat Sep 25 23:01:09 2010
New Revision: 48897
URL:
http://svn.reactos.org/svn/reactos?rev=48897&view=rev
Log:
[CMAKE]
- add set_unicode macro to msvc toolchain
- fix win32cui module type for msvc
Modified:
branches/cmake-bringup/msc.cmake
Modified: branches/cmake-bringup/msc.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/msc.cmake?rev=488…
==============================================================================
--- branches/cmake-bringup/msc.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/msc.cmake [iso-8859-1] Sat Sep 25 23:01:09 2010
@@ -47,9 +47,14 @@
set_subsystem(${MODULE} windows)
endif ()
if (${TYPE} MATCHES win32cui)
- set_subsystem(${MODULE} windows)
- set_entrypoint(${MODULE} mainCRTStartup)
+ set_subsystem(${MODULE} console)
endif ()
+endmacro()
+
+macro(set_unicode MODULE STATE)
+ if(${STATE} MATCHES yes)
+ add_definitions(-DUNICODE -D_UNICODE)
+ endif()
endmacro()
endif()