summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-10-30 03:22:32 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-04 19:18:03 (GMT)
commit738caa4d488375a3b20921b366b86b6614bdc769 (patch)
tree177305e437286ad749a4c163cbee6f9333b29ecf /Help/variable
parent622ac065d2abeb53de3548b7e4f3d9b5980dfa8d (diff)
downloadCMake-738caa4d488375a3b20921b366b86b6614bdc769.zip
CMake-738caa4d488375a3b20921b366b86b6614bdc769.tar.gz
CMake-738caa4d488375a3b20921b366b86b6614bdc769.tar.bz2
Android: Add options to control exceptions/rtti
With the NDK's `android.toolchain.cmake`, the user can control whether exceptions/rtti is enabled using `ANDROID_CPP_FEATURES`: https://android.googlesource.com/platform/ndk/+/43b2de34ef9e3a70573fe51a9e069f985a4be5b9/build/cmake/android.toolchain.cmake#548 Add `CMAKE_ANDROID_RTTI` and `CMAKE_ANDROID_EXCEPTIONS` to support that.
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_ANDROID_EXCEPTIONS.rst7
-rw-r--r--Help/variable/CMAKE_ANDROID_RTTI.rst7
2 files changed, 14 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_ANDROID_EXCEPTIONS.rst b/Help/variable/CMAKE_ANDROID_EXCEPTIONS.rst
new file mode 100644
index 0000000..6dd44f8
--- /dev/null
+++ b/Help/variable/CMAKE_ANDROID_EXCEPTIONS.rst
@@ -0,0 +1,7 @@
+CMAKE_ANDROID_EXCEPTIONS
+------------------------
+
+.. versionadded:: 3.20
+
+When :ref:`Cross Compiling for Android with the NDK`, this variable may be set
+to specify whether exceptions are enabled.
diff --git a/Help/variable/CMAKE_ANDROID_RTTI.rst b/Help/variable/CMAKE_ANDROID_RTTI.rst
new file mode 100644
index 0000000..0e98206
--- /dev/null
+++ b/Help/variable/CMAKE_ANDROID_RTTI.rst
@@ -0,0 +1,7 @@
+CMAKE_ANDROID_RTTI
+------------------
+
+.. versionadded:: 3.20
+
+When :ref:`Cross Compiling for Android with the NDK`, this variable may be set
+to specify whether RTTI is enabled.