Hi Nils, <br><br>Did you try to specify an empty value for the following properties: <br> CMAKE_OSX_SYSROOT<br> CMAKE_OSX_DEPLOYMENT_TARGET<br> CMAKE_OSX_ARCHITECTURES<br><br>?<br><br><div class="gmail_quote">On Thu, Aug 11, 2011 at 8:17 AM, Nils Hjelte <span dir="ltr"><<a href="mailto:nils@algoryx.se">nils@algoryx.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello!<br>
<br>
I'm trying to port a C++ project to NaCl<br>
(<a href="http://code.google.com/chrome/nativeclient/" target="_blank">http://code.google.com/chrome/nativeclient/</a>), with cmake as the build<br>
system, and I need to figure out some things. I am using a Mac as<br>
build machine. I have changed the CMAKE_CXX_COMPILER/LINKER variables<br>
to use the nacl toolchain. What I would like to know is if it is<br>
possible to discard all the default compiler flags. I get lots of<br>
flags that the nacl compiler does not like,<br>
<br>
example:<br>
-mmacosx-version-min=10.5<br>
-arch i386<br>
-isysroot /Developer/SDKs/MacOSX10.7.sdk<br>
<br>
and the linker adds these flags that I can not get rid of:<br>
-compatibility_version 1.12.0<br>
-current_version 1.12.0<br>
<br>
<br>
Ideally I would like an empty compile command where I can explicitly<br>
add the flags needed. Is it possible with CMake?<br>
<br>
<br>
// Nils<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>