XCode project settings do not reflect CMake

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

XCode project settings do not reflect CMake

Mariano Martinez Peck
 
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

Reply | Threaded
Open this post in threaded view
|

Re: XCode project settings do not reflect CMake

Bert Freudenberg

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 -

Reply | Threaded
Open this post in threaded view
|

Re: XCode project settings do not reflect CMake

Mariano Martinez Peck
In reply to this post by Mariano Martinez Peck
 


On Wed, Apr 13, 2011 at 5:44 PM, Stefan Marr <[hidden email]> wrote:

On 13 Apr 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 ?
XCode projects usually have debug and release targets, do the generated ones also make that differentiation?

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





--
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: <a href="tel:%2B32%202%20629%202974" value="+3226292974">+32 2 629 2974
Fax:   <a href="tel:%2B32%202%20629%203525" value="+3226293525">+32 2 629 3525




--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: XCode project settings do not reflect CMake

Igor Stasenko
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.
Reply | Threaded
Open this post in threaded view
|

Re: XCode project settings do not reflect CMake

EstebanLM


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.