[cmake-developers] [CMake 0015852]: CMAKE_CXX_STANDARD broken since CMake 3.4.0 for Android
Mantis Bug Tracker
mantis at public.kitware.com
Thu Nov 19 08:45:16 EST 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15852
======================================================================
Reported By: A. Klitzing
Assigned To:
======================================================================
Project: CMake
Issue ID: 15852
Category: (No Category)
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-11-19 08:45 EST
Last Modified: 2015-11-19 08:45 EST
======================================================================
Summary: CMAKE_CXX_STANDARD broken since CMake 3.4.0 for
Android
Description:
We use the Android NDK/SDK and CMake (with Toolchain file [1]) to build our
program.
If we build our program with CMake 3.4.0 we will get compiler errors that we
need to enable "-std=c++11 or -std=gnu++11". If we switch back to CMake 3.3.2
the flags will be defined by CMake and the build works.
In our cmake files:
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
[1] https://github.com/taka-no-me/android-cmake
Additional Information:
-- ANDROID_NDK_RELEASE: r10e
-- ANDROID_ABI: armeabi-v7a
-- ANDROID_NATIVE_API_LEVEL: 18
-- ANDROID_TOOLCHAIN_ROOT:
/opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
-- ANDROID_SYSROOT: /opt/android-ndk/platforms/android-18/arch-arm
-- ANDROID_TOOLCHAIN_NAME: arm-linux-androideabi-4.9
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-11-19 08:45 A. Klitzing New Issue
======================================================================
More information about the cmake-developers
mailing list