Steve,

On 09/25/2015 03:58 AM, CHEVRIER, Marc wrote:
> * If I add option -std=c++11 in the file .../Test.dir/link.txt,
>   link is successful 

Compiling with a -std= flag should link with such a flag too.
Flags like this are why CMake has always passed CMAKE_CXX_FLAGS
to the C++ compiler when using it to drive the linker.  This does
not appear to be the case anywhere right now when the flag is added
via CXX_STANDARD.

Marc, meanwhile you should be able to bootstrap CMake with

 bootstrap ... -- -DCMake_NO_C_STANDARD=1 -DCMake_NO_CXX_STANDARD

to skip trying to use any -std= flags.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to