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
======================================================================
--
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