View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016004CMakeCMakepublic2016-03-02 16:222016-03-04 04:36
Reporterajneu 
Assigned To 
PrioritynormalSeveritymajorReproducibilityN/A
StatusclosedResolutionduplicate 
PlatformLinuxOSDebianOS VersionDebian Stretch
Product VersionCMake 3.4.3 
Target VersionFixed in Version 
Summary0016004: CMAKE_CXX_STANDARD and CMAKE_CXX_EXTENSIONS not working for crosscompilers
DescriptionHi,

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 Reproducesee above.

And do
sudo apt-get install binutils-arm-none-eabi gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib libnewlib-arm-none-eabi
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0015852closedBrad King CMAKE_CXX_STANDARD broken since CMake 3.4.0 for toolchain files using CMakeForceCompiler 

  Notes
(0040591)
ajneu (reporter)
2016-03-03 07:14

Duplicate of http://public.kitware.com/Bug/view.php?id=15852 [^]

 Issue History
Date Modified Username Field Change
2016-03-02 16:22 ajneu New Issue
2016-03-03 07:14 ajneu Note Added: 0040591
2016-03-04 04:36 Rolf Eike Beer Relationship added duplicate of 0015852
2016-03-04 04:36 Rolf Eike Beer Status new => closed
2016-03-04 04:36 Rolf Eike Beer Resolution open => duplicate


Copyright © 2000 - 2018 MantisBT Team