diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bee03b364..135e3c1c10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.8) project(omim C CXX) diff --git a/android/build.gradle b/android/build.gradle index 54b6798a72..7cd173fd0d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -207,7 +207,8 @@ android { if (project.hasProperty('pch')) pchFlag = 'ON' cmake { - cppFlags '-fexceptions', '-frtti' + version "3.8.0+" + cppFlags '-fexceptions', '-frtti', '-std=c++17' cFlags '-ffunction-sections', '-fdata-sections', '-Wno-extern-c-compat' arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static', @@ -470,6 +471,7 @@ android { externalNativeBuild { cmake { + version "3.8.0+" buildStagingDirectory "./nativeOutputs" path "../CMakeLists.txt" } diff --git a/android/jni/CMakeLists.txt b/android/jni/CMakeLists.txt index 26c9a85b52..985781e5b6 100644 --- a/android/jni/CMakeLists.txt +++ b/android/jni/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.8) project(mapswithme C CXX)