From 796d321ba6abdf9b52bbe871eb54fd875db7ffd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sat, 25 Sep 2010 23:01:09 +0000 Subject: [PATCH] [CMAKE] - add set_unicode macro to msvc toolchain - fix win32cui module type for msvc svn path=/branches/cmake-bringup/; revision=48897 --- msc.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/msc.cmake b/msc.cmake index deb1622d391..cc7565cbf7f 100644 --- a/msc.cmake +++ b/msc.cmake @@ -47,11 +47,16 @@ macro(set_module_type MODULE TYPE) 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() set(CMAKE_C_FLAGS_DEBUG_INIT "/D_DEBUG /MDd /Zi /Ob0 /Od")