Commit 568b08b0 authored by Bruno Coelho's avatar Bruno Coelho Committed by GitHub

Apply target_compile_options to all targets

parent cfd02731
...@@ -62,12 +62,10 @@ if(DJINNI_WITH_JNI) ...@@ -62,12 +62,10 @@ if(DJINNI_WITH_JNI)
find_package(JNI REQUIRED QUIET) find_package(JNI REQUIRED QUIET)
target_include_directories(djinni PUBLIC "${JNI_INCLUDE_DIRS}") target_include_directories(djinni PUBLIC "${JNI_INCLUDE_DIRS}")
endif() endif()
# Exceptions and RTTI are disabled in the NDK by default
if(ANDROID)
target_compile_options(djinni PRIVATE "-fexceptions" "-frtti")
endif()
endif() endif()
target_compile_options(djinni PRIVATE "-fexceptions" "-frtti")
if(NOT (DJINNI_WITH_OBJC OR DJINNI_WITH_JNI)) if(NOT (DJINNI_WITH_OBJC OR DJINNI_WITH_JNI))
message(FATAL_ERROR "At least one of DJINNI_WITH_OBJC or DJINNI_WITH_JNI must be enabled.") message(FATAL_ERROR "At least one of DJINNI_WITH_OBJC or DJINNI_WITH_JNI must be enabled.")
endif() endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment