[Insight-developers] Mac OSX Mavericks build configuration

Bradley Lowekamp blowekamp at mail.nih.gov
Fri Nov 1 09:10:22 EDT 2013


Hans,

Glad you got a work around.

An important part of this is getting the CMake try compiles correct. So those flags must be set for the first configuration!

Flags like "-stdlib=libstdc++ -std=c++03" or "-std=c++11" essentially changes the language and the try_compile results. If these flags are added or changed after their initial configuration then the try_compile results are erroneous and the configuration of ITK is inconsistent.

Last I check CMake does not detect this change and does not force a re-configure like when you change the compiler. I think this is really a CMake issue.

Additionally these "-std=" flags should likely be part of ITK's required CXX flags.

Brad

On Oct 31, 2013, at 10:04 PM, "Johnson, Hans J" <hans-johnson at uiowa.edu> wrote:

> Hello All,
> 
> I¹ve been fighting to get a build of ITK on the newest version of MacOSX
> (with their clang only compilers).
> 
> One incantation that I¹ve been able to make work is the following:
> 
> cmake -DCMAKE_CXX_FLAGS:STRING='-stdlib=libstdc++ -std=c++03 Œ  ../ITK
> 
> I can say that the git master from today with these flags compiled and all
> tests passed.
> 
> 
> 
> Hans
> 
> 
> 
> 
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
> ________________________________
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers



More information about the Insight-developers mailing list