File tree Expand file tree Collapse file tree
NativeApp/Android/ndk_helper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,16 @@ PUBLIC
3434 native_app_glue
3535)
3636
37+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
38+ # WARNING: set_source_files_properties() does not append
39+ # properties, but overwrites them!
40+ # NOTE: target_compile_options() adds the option before -Werror, which has no effect
41+ set_property (SOURCE ${SOURCE}
42+ APPEND_STRING PROPERTY
43+ COMPILE_FLAGS " -Wno-deprecated-copy"
44+ )
45+ endif ()
46+
3747source_group ("src" FILES ${SOURCE} )
3848source_group ("include" FILES ${INCLUDE} )
3949
Original file line number Diff line number Diff line change 1919
2020#define NDK_HELPER_VERSION "0.90"
2121
22+ #pragma clang diagnostic push
23+ #pragma clang diagnostic ignored "-Wdeprecated-copy"
24+
2225/******************************************************************
2326 * NDK support helpers
2427 * Utility module to provide misc functionalities that is used widely in native
3942#include "perfMonitor.h" // FPS counter
4043#include "sensorManager.h" // SensorManager
4144#include "interpolator.h" // Interpolator
45+
46+ #pragma clang diagnostic pop
47+
4248#endif
You can’t perform that action at this time.
0 commit comments