diff --git a/3party/opening_hours/CMakeLists.txt b/3party/opening_hours/CMakeLists.txt index 52f93aebaf..c6a92dd281 100644 --- a/3party/opening_hours/CMakeLists.txt +++ b/3party/opening_hours/CMakeLists.txt @@ -21,6 +21,10 @@ omim_add_library(${PROJECT_NAME} ${SRC}) target_include_directories(${PROJECT_NAME} INTERFACE .) +if (NOT PLATFORM_ANDROID) + target_compile_options(${PROJECT_NAME} PRIVATE -Wno-deprecated-copy) +endif() + omim_add_test_subdirectory(opening_hours_tests) omim_add_test_subdirectory(opening_hours_integration_tests) omim_add_test_subdirectory(opening_hours_supported_features_tests) diff --git a/3party/protobuf/CMakeLists.txt b/3party/protobuf/CMakeLists.txt index 8bbc19007f..c31682f0c2 100644 --- a/3party/protobuf/CMakeLists.txt +++ b/3party/protobuf/CMakeLists.txt @@ -29,14 +29,14 @@ add_library(${PROJECT_NAME} ${SRC}) target_include_directories(${PROJECT_NAME} PRIVATE . ../../ - PUBLIC protobuf/src + PUBLIC protobuf/src ) if(NOT PLATFORM_WIN) target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_PTHREAD) endif () -target_compile_options(${PROJECT_NAME} - PRIVATE $<$:-Wno-shorten-64-to-32> +target_compile_options(${PROJECT_NAME} PRIVATE + $<$:-Wno-shorten-64-to-32> + -Wno-sign-compare ) -