[CMake] CMake and NaCl (Google NativeClient)

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Mon Aug 15 09:55:40 EDT 2011


Hi Nils,

Did you try to specify an empty value for the following properties:
  CMAKE_OSX_SYSROOT
  CMAKE_OSX_DEPLOYMENT_TARGET
  CMAKE_OSX_ARCHITECTURES

?

On Thu, Aug 11, 2011 at 8:17 AM, Nils Hjelte <nils at algoryx.se> 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,
>
> example:
> -mmacosx-version-min=10.5
> -arch i386
> -isysroot /Developer/SDKs/MacOSX10.7.sdk
>
> and the linker adds these flags that I can not get rid of:
> -compatibility_version 1.12.0
> -current_version 1.12.0
>
>
> Ideally I would like an empty compile command where I can explicitly
> add the flags needed. Is it possible with CMake?
>
>
> // Nils
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110815/9ff2d3c3/attachment.htm>


More information about the CMake mailing list