[Vm-dev] XCode project settings do not reflect CMake

Mariano Martinez Peck marianopeck at gmail.com
Wed Apr 13 15:39:25 UTC 2011


Hi. I just want to know if this is normal/expected.  When I use CMake to
generate a XCode project, i.e, "cmake -G Xcode", the settings DO NOT match
the makefiles that were generated by CMake. For example, in the
CMakeFiles.txt I have this line:

add_definitions(-arch i386 -mmacosx-version-min=10.5 -g3 -O0 -msse3
-fvisibility=hidden -funroll-loops -fasm-blocks -finline-functions
-mfpmath=sse -march=pentium-m -falign-functions=16 -fno-gcse
-fno-cse-follow-jumps -std=gnu99 -DBUILD_FOR_OSX
-DUSE_INLINE_MEMORY_ACCESSORS -DLSB_FIRST -DHAVE_SYS_TIME_H -DHAVE_NANOSLEEP
-DNDEBUG=0 -DDEBUGVM=1 -DCOGMTVM=1 -DUSE_GLOBAL_STRUCT=0
-DBASE_HEADER_SIZE=4 -DCOGVM)

Notice the "-g3 -O0".  Now..if I open XCode, right click on the terget, "get
info", "build" tab, and look the "Optimization Level" it says -Os. ALWAYS.
It doesn't matter what is in CMake, there it always says -Os. Moreever,
changing that, doesn't have any impact. The optimization level is the want
defined in CMake.

Conclusion: the XCode project is compiling with the makefiles generated from
CMake, but the settings of the projects are not correctly set ? Is this
expected ? I am the only one noticing this ?

Thanks

-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20110413/e99e2523/attachment.htm


More information about the Vm-dev mailing list