diff --git a/src/Magnum/Platform/CMakeLists.txt b/src/Magnum/Platform/CMakeLists.txt index 795cf1a06..24871baff 100644 --- a/src/Magnum/Platform/CMakeLists.txt +++ b/src/Magnum/Platform/CMakeLists.txt @@ -73,6 +73,9 @@ if(WITH_ANDROIDAPPLICATION) add_library(MagnumAndroidApplicationGlue OBJECT ${ANDROID_NATIVE_APP_GLUE_SRC}) set_target_properties(MagnumAndroidApplicationGlue PROPERTIES CORRADE_USE_PEDANTIC_FLAGS OFF) + # They just don't care, so of course the ANativeActivity_onCreate() + # function is not exported and thus the app startup fails if I don't + # disable hidden visibility for the file. target_compile_options(MagnumAndroidApplicationGlue PRIVATE "-fvisibility=default") add_library(MagnumAndroidApplication STATIC @@ -80,9 +83,6 @@ if(WITH_ANDROIDAPPLICATION) ${MagnumAndroidApplication_HEADERS} ${MagnumAndroidApplication_PRIVATE_HEADERS} $) - # They just don't care, so of course the ANativeActivity_onCreate() - # function is not exported and thus the app startup fails if I don't - # disable hidden visibility for the file. target_include_directories(MagnumAndroidApplication PUBLIC ${ANDROID_NATIVE_APP_GLUE_INCLUDE_DIR}) set_target_properties(MagnumAndroidApplication PROPERTIES DEBUG_POSTFIX "-d"