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