[cmake-developers] [PATCH] Added very basic Windows CE Makefile support

Patrick Gansterer paroga at paroga.com
Thu Sep 13 08:06:14 EDT 2012


Hi,

Am 13.09.2012 um 13:48 schrieb Brad King:

> On 09/12/2012 09:00 AM, Patrick Gansterer wrote:
>> The topic meged a few hours ago. I rebased the code and pushed it again 
>> as "ce"
> 
> Thanks.
> 
> Normally cross compiling is done with a toolchain file and
> sets CMAKE_CROSSCOMPILING.  Does that work for the NMake
> generator now without this topic?

Should work now for many parts. IMHO there are still a few parts which do not work 100% now. But I can figure it out with the current master.

> We need to figure out how to map that approach into the IDE
> generators.  A setting like CMAKE_WINCE_SDK needs to be set
> before any languages are enabled.  How should a user set it?

If you apply it to the other VS genertors we need to extend the list of generators with every SDK found (-G "Visual Studio 8 2005 ${CMAKE_WINCE_SDK}"). IMHO selecting the platform for the VS compiler with different compilers isn't perfect either (For every new VS version you get 2 (with ARM 3) new generator types).
Maybe we can extend the "-G parameter" with something like "-GP generatorPlatform" and remove the "Win64" and "ARM" VS generators?

> Please also add documentation for CMAKE_WINCE_SDK.
> 
> BTW, why is this hunk needed?
> 
> +  this->GetCMakeInstance()->AddCacheEntry("CMAKE_C_COMPILER",
> +    "cl", "", cmCacheManager::INTERNAL);
> +  this->GetCMakeInstance()->AddCacheEntry("CMAKE_CXX_COMPILER",
> +    "cl", "", cmCacheManager::INTERNAL);

Otherwiese Visual Studio catches the wrong compiler later. But maybe the CMake codebase improved in the meantime (the patch is based on v2.8.3).

-- Patrick


More information about the cmake-developers mailing list