[ITK] [ITK-users] ITK_COMPILED_CXX_VERSION always set to 1997 on macOS

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Mon Jan 23 09:25:00 EST 2017


Hello,

What Xcode version are you using? Can you produce a simple CMake command line configuration to reproduce the problem?

If you set "CMAKE_CXX_FLAGS=-std=c++11”, does the same problem occur?

Thanks!
Brad

> On Jan 23, 2017, at 9:11 AM, Olivier Commowick <Olivier.Commowick at inria.fr> wrote:
> 
> Hello,
> 
> While debugging something else, I realised that the ITK_COMPILED_CXX_VERSION variable in CMake is always set to 199711L on my macOS 10.12. It sounds weird to me since I am always compiling ITK by enforcing to use CMAKE_CXX_STANDARD to 11.
> 
> It appears to me that Modules/Core/Common/CMakeLists.txt does this test and probably does not account for the fact that cmake uses the 2011 standard or something else. Would someone have any idea of how to correct this or if this is important or not ?
> 
> Best
> Olivier
> 
> ---
> 
> Olivier Commowick, Ph.D.
> Research Scientist
> INRIA Rennes - Bretagne Atlantique, VISAGES Team
> Campus de Beaulieu
> 35042 Rennes
> FRANCE
> 
> Phone: +33 2 99 84 25 92
> Email: Olivier.Commowick at inria.fr
> Web: http://olivier.commowick.org/
> 
> 
> 
> 
> 
> _____________________________________
> 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://www.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://public.kitware.com/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community

_____________________________________
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://www.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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list