Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 11-06-2012, 04:08   #1
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
cmake -DCFLAGS="-O2 -march=native" ../ : WORKING ??

Hello All,

I try to use these command for building 3.0.0 :

Code:
cmake -DCFLAGS="-O2 -march=native" ../
I have a CMAKE Warning:
Code:
Manually-specified variable not used by the project:

CFLAGS
Is it obsolete

Emmanuel
manuprenlair is offline   Reply With Quote
Old 11-06-2012, 05:54   #2
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: cmake -DCFLAGS="-O2 -march=native" ../ : WORKING ??

Quote:
Originally Posted by manuprenlair View Post
]Is it obsolete
IMHO, yes, it is.
To my knowledge, appropriate flags for every platform we support are already set in CMakeLists.txt

So
Code:
cmake -DPREFIX=/usr ../
or
Code:
cmake ../
should be enough.
SethDart is offline   Reply With Quote
Old 11-06-2012, 08:54   #3
Registered User

Join Date: Jan 2011
Location: Martigues, FRANCE
Boat: GibSea 28Q
Posts: 40
Re: cmake -DCFLAGS="-O2 -march=native" ../ : WORKING ??

This perfect if optimisation flag are already set!

Just perhaps its would be nice if this command is comment as "depreciate" in the developper manual.

Thanks For your answer.


Bonjour SethDart,

j'ai commencé à modifier OCPN pour l'adapter à un ecran tactile 7".
j'aimerais partager ce travail mais je ne sais pas comment (github ?)

c'est un autre sujet, puis-je te joindre via un email afin de ne pas trop polluer ce forum??

Merci

Emmanuel
manuprenlair is offline   Reply With Quote
Reply

Tags
arc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Advertise Here


All times are GMT -7. The time now is 02:09.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.