Skip to content

Conversation

@kirillzyusko
Copy link
Contributor

@kirillzyusko kirillzyusko commented Nov 12, 2025

Summary:

On version 3.30.5 and lower the ninja version is 1.10.2 or lower:

image

With this version in place we can not use long pathnames (that exceeds 260 symbols). The issue has been fixed in ninja version 1.12.+ see ninja-build/ninja#1900

In this PR I'm proposing to bump cmake to next latest release (i. e. we were on .30 and move to .31). In this PR the ninja version is 1.12.1 and it should fix the problem:

image

This update should simplify a life for maintainers of projects that use c++ code, such as:

Current workaround for Windows users is to manually download a new CMake version and use it, but they don't like this approach and keep opening issues in various 3rd party libraries.

Let me know if you have any concerns 🙏

Changelog:

[GENERAL] [CHANGED] - Update cmake to 3.31.6

Test Plan:

Run CI and make sure it's not failed due to dependency update 😅

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 12, 2025
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 12, 2025
Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@meta-codesync
Copy link

meta-codesync bot commented Nov 12, 2025

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D86873726.

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

cortinico added a commit to react-native-community/docker-android that referenced this pull request Nov 13, 2025
This is a minor bump of CMake to reflect: 
- facebook/react-native#54520
@cortinico
Copy link
Contributor

I think we could merge this but I dislike that we will now have a bunch of extra warnings during the build:


> Task :packages:react-native:ReactAndroid:configureCMakeDebug[arm64-v8a]
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-8xowjS/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-8xowjS/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-8xowjS/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-bvpN97/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-bvpN97/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-bvpN97/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)

@cortinico
Copy link
Contributor

I think we could merge this but I dislike that we will now have a bunch of extra warnings during the build:


> Task :packages:react-native:ReactAndroid:configureCMakeDebug[arm64-v8a]
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeDetermineSystem.cmake:146 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   CMakeLists.txt:9 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-8xowjS/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-8xowjS/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-8xowjS/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-bvpN97/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-bvpN97/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/CMakeScratch/TryCompile-bvpN97/CMakeLists.txt:4 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-CXX.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCXXInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-CXX/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android-legacy.toolchain.cmake:35 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:55 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/CMakeFiles/3.31.6-g38307f9/CMakeSystem.cmake:6 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)
C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/flags.cmake:18 (cmake_minimum_required):
C/C++:   Compatibility with CMake < 3.10 will be removed from a future version of
C/C++:   CMake.
C/C++:   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
C/C++:   to tell CMake that the project requires at least <min> but has been updated
C/C++:   to work with policies introduced by <max> or earlier.
C/C++: Call Stack (most recent call first):
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang.cmake:23 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/Platform/Android-Clang-C.cmake:1 (include)
C/C++:   /opt/android_sdk/cmake/3.31.6/share/cmake-3.31/Modules/CMakeCInformation.cmake:48 (include)
C/C++:   /Users/ncor/fbsource-noeden/xplat/js/react-native-github/packages/react-native/ReactAndroid/.cxx/Debug/2y2t2w44/arm64-v8a/ReactCommon/yoga/yoga/CMakeFiles/_CMakeLTOTest-C/src/CMakeLists.txt:2 (project)

Because of this, I'd rather bump CMake version once we also bump to NDK 28 version.
You can still override the CMake version on your environment with the env variable CMAKE_VERSION to overcome the issue you're having on Windows

@cortinico cortinico closed this Nov 13, 2025
@kirillzyusko
Copy link
Contributor Author

kirillzyusko commented Nov 13, 2025

@cortinico do you have any eta for NDK 28 bump? 👀

You can still override the CMake version on your environment with the env variable CMAKE_VERSION to overcome the issue you're having on Windows

Yeah, I can, but I'm constantly getting complains that my lib breaks compilation on Windows machine, and even if you tell developers how to overcome the problem they will still claim, that the issue should be fixed in the lib itself, so I thought that a better approach would be to bump the cmake version in RN itself...

So yeah, out of curiosity decided to ask about NDK 28 plan 🙃

@cortinico
Copy link
Contributor

Yeah, I can, but I'm constantly getting complains that my lib breaks compilation on Windows machine, and even if you tell developers how to overcome the problem they will still claim, that the issue should be fixed in the lib itself, so I thought that a better approach would be to bump the cmake version in RN itself.

Why is your library creating this failure? Is it because the name of the library is too long?

@cortinico
Copy link
Contributor

So yeah, out of curiosity decided to ask about NDK 28 plan 🙃

I don't have an ETA but I suspect this would land sometime next year, because it comes by default with AGP 9.x (that's when we generally bump the NDK version) which has several breaking changes in it.

One thing you can try to do, is to open an issue on https://github.com/android/ndk and report the warning once we use CMake 3.31.6 + NDK 27

@kirillzyusko
Copy link
Contributor Author

Why is your library creating this failure? Is it because the name of the library is too long?

Eventually yes, it wasn't a problem when I used autogenerated code. But when I started to use custom C++ ShadowNodes the issue started to appear on Windows machines 🤷‍♂️

One thing you can try to do, is to open an issue on https://github.com/android/ndk and report the warning once we use CMake 3.31.6 + NDK 27

But that warning says that underlying cmake version will be removed. And it looks like yoga is using CMake < 3.10 🤔 So for me it looks like it needs to be addressed on react-native/yoga side?..

@cortinico
Copy link
Contributor

But that warning says that underlying cmake version will be removed. And it looks like yoga is using CMake < 3.10 🤔 So for me it looks like it needs to be addressed on react-native/yoga side?..

Nope because the warning is happening inside the Android NDK toolchain files:

C/C++: CMake Deprecation Warning at /opt/android_sdk/ndk/27.1.12297006/build/cmake/android.toolchain.cmake:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants