[cmake-developers] [CMake 0016004]: CMAKE_CXX_STANDARD and CMAKE_CXX_EXTENSIONS not working for crosscompilers

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 2 16:22:29 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=16004 
====================================================================== 
Reported By:                ajneu
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16004
Category:                   CMake
Reproducibility:            N/A
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-03-02 16:22 EST
Last Modified:              2016-03-02 16:22 EST
====================================================================== 
Summary:                    CMAKE_CXX_STANDARD and CMAKE_CXX_EXTENSIONS not
working for crosscompilers
Description: 
Hi,

If I have somethings like this...

set (CMAKE_SYSTEM_NAME "Generic")
include(CMakeForceCompiler)
cmake_force_c_compiler(  "arm-none-eabi-gcc" GNU)
cmake_force_cxx_compiler("arm-none-eabi-g++" GNU)

project(now_starts_the_project)

set (CMAKE_CXX_STANDARD   11)
set (CMAKE_CXX_EXTENSIONS OFF)

... then I do not get the expected -std=c++11 flags, when viewing with make
VERBOSE=1.


Steps to Reproduce: 
see above.

And do
sudo apt-get install binutils-arm-none-eabi gcc-arm-none-eabi
libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-02 16:22 ajneu          New Issue                                    
======================================================================



More information about the cmake-developers mailing list