Skip to content

Commit

Permalink
change CMake toolchain file CMAKE_ANDROID_EXCEPTION to
Browse files Browse the repository at this point in the history
CMAKE_ANDROID_EXCEPTIONS

Bug: android/ndk#1618
Test: None
Change-Id: I40c6db01bd34123640e826ebda5eb4f9c94fe075
  • Loading branch information
ZijunZhaoCCK committed Dec 14, 2021
1 parent bfe4acd commit 379a69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cmake/android.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ if(ANDROID_CPP_FEATURES)
set(CMAKE_ANDROID_RTTI FALSE)
endif()
if(${feature} STREQUAL "exceptions")
set(CMAKE_ANDROID_EXCEPTION TRUE)
set(CMAKE_ANDROID_EXCEPTIONS TRUE)
endif()
if(${feature} STREQUAL "no-exceptions")
set(CMAKE_ANDROID_EXCEPTION FALSE)
set(CMAKE_ANDROID_EXCEPTIONS FALSE)
endif()
endforeach()
string(REPLACE ";" " " ANDROID_CPP_FEATURES "${ANDROID_CPP_FEATURES}")
Expand Down

0 comments on commit 379a69b

Please sign in to comment.