From Hartmut Seichter, "attached a revised CMakeLists.txt file for Android that avoids the problems with a ARM gcc bug that appears in the NDK. It only overrides the optimization level for one file. As it resides only in the cfg parser this should not have side effects on performance."

This commit is contained in:
Robert Osfield
2012-02-08 17:12:58 +00:00
parent e867f6bcd7
commit c533c33457

View File

@@ -16,6 +16,20 @@ SET(TARGET_H
VisualChooser.h
)
#
# Android NDK r6, r6b and r7 ship with a broken gcc (armeabi)
# see also
# - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836
# - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37987
#
if (ANDROID)
set_source_files_properties(ConfigParser.cpp
PROPERTY
COMPILE_FLAGS
"-O0")
endif()
#
SET(TARGET_ADDED_LIBRARIES osgViewer)
#### end var setup ###