> > + else if (this->SystemName == "WindowsCE") > > + { > > + this->SystemIsWindowsCE = true; > > + if (!this->InitializeWindowsCE(mf)) > > At the beginning of this block you should check/reject when > the generator name specified a platform name. Something like: > > if(this->PlatformName != "Win32") > { > cmOStringStream e; > e << "CMAKE_SYSTEM_NAME is 'WindowsCE' but CMAKE_GENERATOR " > << "specifies a platform too: '" << this->GetName() << "'"; > mf->IssueMessage(cmake::FATAL_ERROR, e.str()); > return false; > } >
This won't' work as the code gets called multiple times during a project generation, but only the first time it is set to Win32. So the code will fail the second time. I need to put the code somewhere earlier in the initialization but don't know yet where. I will submit an updated version soon. Pascal -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers