Add support for new Windows CE compiler

The new compiler versions do not need corelibc.lib as a default
link library and a architecture detection workaround.
This commit is contained in:
Patrick Gansterer 2013-08-04 20:11:30 +02:00 committed by Brad King
parent 09b147b3a7
commit 8fcf0ab020
1 changed files with 5 additions and 1 deletions

View File

@ -141,8 +141,12 @@ if(WINCE)
set(_RTC1 "")
set(_FLAGS_CXX " /GR /EHsc")
set(CMAKE_C_STANDARD_LIBRARIES_INIT "coredll.lib corelibc.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib")
set(CMAKE_C_STANDARD_LIBRARIES_INIT "coredll.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib")
set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:oldnames.lib")
if (MSVC_VERSION LESS 1500)
set(CMAKE_C_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT} corelibc.lib")
endif ()
else()
set(_PLATFORM_DEFINES "/DWIN32")