Skip to content

[BUG] From Cmake-3.31.0 some warnings " (cmake_minimum_required)" #2100

@rumas84

Description

@rumas84

Description

CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:14 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:55 (include)
  /usr/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
  CMakeLists.txt:14 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  CMakeLists.txt:14 (project)


-- The C compiler identification is Clang 18.0.2
CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/flags.cmake:18 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
  /usr/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
  CMakeLists.txt:14 (project)


-- Detecting C compiler ABI info
CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-lWzK3x/CMakeLists.txt:4 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:55 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-lWzK3x/CMakeLists.txt:4 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/flags.cmake:18 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
  /usr/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-lWzK3x/CMakeLists.txt:4 (project)


-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/ninja-build2+/sources/android-ndk-r27b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- ....
...
..
.
HOSTCC  webif/pages_gen
GEN     webif/pages.c
GEN     Compressed 384952 template bytes into 156941 bytes. 228011 saved bytes (59.23%).
-- The CXX compiler identification is Clang 18.0.2
-- Detecting CXX compiler ABI info
CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-ZwKrb9/CMakeLists.txt:4 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:55 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-ZwKrb9/CMakeLists.txt:4 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/flags.cmake:18 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
  /usr/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-ZwKrb9/CMakeLists.txt:4 (project)


-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/ninja-build2+/sources/android-ndk-r27b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for math.h
CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-8BVN7A/CMakeLists.txt:4 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/android.toolchain.cmake:55 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/3.31.0/CMakeSystem.cmake:6 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-8BVN7A/CMakeLists.txt:4 (project)


CMake Deprecation Warning at /opt/ninja-build2+/sources/android-ndk-r27b/build/cmake/flags.cmake:18 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
  /usr/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
  /usr/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
  /opt/ninja-build2+/cam-gitlab/build/CMakeFiles/CMakeScratch/TryCompile-8BVN7A/CMakeLists.txt:4 (project)

On my side CMakeLists.txt updated and it's ok .
cmake_minimum_required(VERSION 2.8...3.10)

Affected versions

r27, r28

Canary version

No response

Host OS

Linux

Host OS version

Ubuntu 24.04.1

Affected ABIs

armeabi-v7a

Build system

CMake

Other build system

No response

minSdkVersion

Null

Device API level

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions