build system fixes and improvements

- deploy px4 metadata using target
 - clang scan-build upload output to s3
 - clang-tidy properly check headers
 - add cppcheck helper
 - force gcc color
This commit is contained in:
Daniel Agar
2017-06-02 19:35:18 -04:00
parent 723a6bf6ac
commit ac4a706da0
7 changed files with 57 additions and 95 deletions
+9
View File
@@ -846,6 +846,15 @@ function(px4_add_common_flags)
)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9)
# force color for gcc > 4.9
list(APPEND _optimization_flags
-fdiagnostics-color=always
)
endif()
endif()
set(visibility_flags
-fvisibility=hidden
-include visibility.h