Michael Grupp 2018-10-19 08:28:54 +02:00 committed by Alexander Belyaev
parent 6ad7b87b67
commit d0348634b2
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ macro(google_initialize_cartographer_project)
google_add_flag(GOOG_CXX_FLAGS "-Werror=switch") google_add_flag(GOOG_CXX_FLAGS "-Werror=switch")
google_add_flag(GOOG_CXX_FLAGS "-Werror=uninitialized") google_add_flag(GOOG_CXX_FLAGS "-Werror=uninitialized")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
google_add_flag(GOOG_CXX_FLAGS "-Wthread-safety")
endif()
if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "") if(NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
endif() endif()