diff --git a/3party/freetype/CMakeLists.txt b/3party/freetype/CMakeLists.txt index 15a4c05e3c..2d381461ce 100644 --- a/3party/freetype/CMakeLists.txt +++ b/3party/freetype/CMakeLists.txt @@ -10,6 +10,12 @@ add_compile_options( "-Wall" ) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-unused-function" + ) +endif() + include_directories(include) set( diff --git a/3party/icu/CMakeLists.txt b/3party/icu/CMakeLists.txt index 3849efa7e8..c2fcce02f7 100644 --- a/3party/icu/CMakeLists.txt +++ b/3party/icu/CMakeLists.txt @@ -10,6 +10,12 @@ add_definitions( -DU_ENABLE_DYLOAD=0 ) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-deprecated-declarations" + ) +endif() + set(CMAKE_PREFIX_PATH ./) include_directories(common i18n common/unicode ./) diff --git a/3party/liboauthcpp/CMakeLists.txt b/3party/liboauthcpp/CMakeLists.txt index 1236a7cda2..a1e07791b1 100644 --- a/3party/liboauthcpp/CMakeLists.txt +++ b/3party/liboauthcpp/CMakeLists.txt @@ -2,6 +2,12 @@ project(oauthcpp) include_directories(include src) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-shorten-64-to-32" + ) +endif() + set( SRC include/liboauthcpp/liboauthcpp.h diff --git a/3party/minizip/CMakeLists.txt b/3party/minizip/CMakeLists.txt index 132fefaf56..d4c412a473 100644 --- a/3party/minizip/CMakeLists.txt +++ b/3party/minizip/CMakeLists.txt @@ -2,6 +2,12 @@ project(minizip) add_definitions(-DUSE_FILE32ZPI -DNOCRYPT) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-unused-value" + ) +endif() + set( SRC ioapi.c diff --git a/3party/opening_hours/CMakeLists.txt b/3party/opening_hours/CMakeLists.txt index b62632c4e9..26996808b7 100644 --- a/3party/opening_hours/CMakeLists.txt +++ b/3party/opening_hours/CMakeLists.txt @@ -11,7 +11,6 @@ add_compile_options( "-std=c++11" ) - set( SRC opening_hours.hpp diff --git a/3party/osrm/CMakeLists.txt b/3party/osrm/CMakeLists.txt index 8e34bd8e22..e671083b14 100644 --- a/3party/osrm/CMakeLists.txt +++ b/3party/osrm/CMakeLists.txt @@ -6,6 +6,12 @@ include_directories( ${OMIM_ROOT}/3party/osrm/osrm-backend/third_party ) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-overloaded-virtual" + ) +endif() + set( SRC boost_stub.cpp diff --git a/3party/protobuf/CMakeLists.txt b/3party/protobuf/CMakeLists.txt index de693995c1..b1e48d3ea5 100644 --- a/3party/protobuf/CMakeLists.txt +++ b/3party/protobuf/CMakeLists.txt @@ -6,6 +6,13 @@ if (NOT PLATFORM_WIN) add_definitions(-DHAVE_PTHREAD) endif () +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-deprecated-declarations" + "-Wno-shorten-64-to-32" + ) +endif() + set( SRC config.h diff --git a/3party/sdf_image/CMakeLists.txt b/3party/sdf_image/CMakeLists.txt index ae4615d56e..d6717b2327 100644 --- a/3party/sdf_image/CMakeLists.txt +++ b/3party/sdf_image/CMakeLists.txt @@ -1,5 +1,11 @@ project(sdf_image) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-shorten-64-to-32" + ) +endif() + set( SRC sdf_image.cpp diff --git a/3party/succinct/CMakeLists.txt b/3party/succinct/CMakeLists.txt index 30ee3eedf5..9f336d3f33 100644 --- a/3party/succinct/CMakeLists.txt +++ b/3party/succinct/CMakeLists.txt @@ -4,6 +4,12 @@ add_definitions(-DLTC_NO_ROLC) include_directories(src/headers) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options( + "-Wno-unused-local-typedef" + ) +endif() + set( SRC bit_vector.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 50cd07e4c2..f02a230620 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -286,6 +286,7 @@ add_compile_options( if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options( "-Wshorten-64-to-32" + "-Wno-unused-local-typedef" ) endif()