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 |
On 13.04.2011, at 17:39, Mariano Martinez Peck wrote: > 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 ? Maybe you are the first one trying to use XCode projects generated by CMake? - Bert - |
In reply to this post by Mariano Martinez Peck
On Wed, Apr 13, 2011 at 5:44 PM, Stefan Marr <[hidden email]> wrote:
Yes, it is done in CMake with this line: set(CMAKE_CONFIGURATION_TYPES Debug Release) But for me...it seems too much magic. And in fact, if I inspect the settings with both targets, they have the same settings. Thanks
-- Mariano http://marianopeck.wordpress.com |
In reply to this post by Bert Freudenberg
On 13 April 2011 17:52, Bert Freudenberg <[hidden email]> wrote: > > On 13.04.2011, at 17:39, Mariano Martinez Peck wrote: > >> 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 ? > > Maybe you are the first one trying to use XCode projects generated by CMake? > No, i think Esteban builds VMs using XCode, but configs generated by CMake. > - Bert - > > -- Best regards, Igor Stasenko AKA sig. |
El 13/04/2011, a las 1:17p.m., Igor Stasenko escribió: > > On 13 April 2011 17:52, Bert Freudenberg <[hidden email]> wrote: >> >> On 13.04.2011, at 17:39, Mariano Martinez Peck wrote: >> >>> 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 ? >> >> Maybe you are the first one trying to use XCode projects generated by CMake? >> > > No, i think Esteban builds VMs using XCode, but configs generated by CMake. true... and AFAIK, it was running ok... but I really have not idea, nor time to check it right now (in a couple of hours, maybe :) ) > >> - Bert - >> >> > > > > -- > Best regards, > Igor Stasenko AKA sig. |
Free forum by Nabble | Edit this page |