[cmake-developers] [CMake 0015797]: PROPERTY CXX_STANDARD does not work with custom arm-none-eabi-g++
Mantis Bug Tracker
mantis at public.kitware.com
Sat Oct 17 04:52:36 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=15797
======================================================================
Reported By: nano
Assigned To:
======================================================================
Project: CMake
Issue ID: 15797
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-10-17 04:52 EDT
Last Modified: 2015-10-17 04:52 EDT
======================================================================
Summary: PROPERTY CXX_STANDARD does not work with custom
arm-none-eabi-g++
Description:
When the CMakeForceCompiler module is used to set a new compiler for cross
compilation the CXX_STANDARD property does not work. arm-none-eabi-g++ is
launched without -std=c++11. No errors or warnings are shown even though
CXX_STANDARD_REQUIRED is set.
Steps to Reproduce:
cmake_minimum_required(VERSION 3.3)
include(CMakeForceCompiler)
set(CMAKE_SYSTEM_NAME Generic)
CMAKE_FORCE_C_COMPILER(arm-none-eabi-gcc GNU)
CMAKE_FORCE_CXX_COMPILER(arm-none-eabi-g++ GNU)
project(bug)
add_executable(bug bug.cpp)
set_property(TARGET bug PROPERTY CXX_STANDARD 11)
set_property(TARGET bug PROPERTY CXX_STANDARD_REQUIRED ON)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-17 04:52 nano New Issue
======================================================================
More information about the cmake-developers
mailing list