Re: [CMake] CMake and NaCl (Google NativeClient)

2011-08-23 Thread Alexander Neundorf
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
___
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


Re: [CMake] CMake and NaCl (Google NativeClient)

2011-08-15 Thread Jean-Christophe Fillion-Robin
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 n...@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
___
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