[CMake] CMake and NaCl (Google NativeClient)
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Aug 23 12:59:16 EDT 2011
On Thursday 11 August 2011, Nils Hjelte wrote:
> Hello!
>
> I'm trying to port a C++ project to NaCl
> (http://code.google.com/chrome/nativeclient/), with cmake as the build
> system, and I need to figure out some things. I am using a Mac as
> build machine. I have changed the CMAKE_CXX_COMPILER/LINKER variables
> to use the nacl toolchain. What I would like to know is if it is
> possible to discard all the default compiler flags. I get lots of
> flags that the nacl compiler does not like,
After a very quick first look, maybe this should be treated as cross
compiling, with the target OS being "NaCl" or something like that.
That way you'll have a platform file, where you can set all the flags as
necessary for that target.
Alex
More information about the CMake
mailing list