Added -Wno-deprecated-register for Clang build to quieten warnings related to lex/yacc generated files

This commit is contained in:
Robert Osfield
2016-06-03 17:38:32 +01:00
parent 6c842a534e
commit 017ec902e2

View File

@@ -1,4 +1,4 @@
SET(TARGET_SRC
SET(TARGET_SRC
CameraConfig.cpp
Camera.cpp
ConfigLexer.cpp
@@ -16,19 +16,26 @@ SET(TARGET_H
VisualChooser.h
)
# lex/yacc generated files use register that causes warnings with CLang under OSX so disable this warnings.
IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wno-deprecated-register)
ENDIF()
#
# Android NDK r6, r6b and r7 ship with a broken gcc (armeabi)
# see also
# - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836
# 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
set_source_files_properties(ConfigParser.cpp
PROPERTY
COMPILE_FLAGS
"-O0")
endif()
#
#
SET(TARGET_ADDED_LIBRARIES osgViewer)