meher745 opened a new issue, #48801: URL: https://github.com/apache/arrow/issues/48801
### Describe the bug, including details regarding any error messages, version, and platform. ### Describe the bug When building the C++ library with CMake 4.0 or newer, the configuration stage fails with a fatal error. This occurs because CMake 4.0 has officially removed support for policies older than 3.5. Several bundled third-party dependencies (notably RapidJSON) specify a cmake_minimum_required version as low as 2.8 in their internal build files. When CMake 4.x encounters these, it halts the build process. <img width="828" height="140" alt="Image" src="https://github.com/user-attachments/assets/ca47bcd6-9712-41c4-961a-b21686bc7b61" /> Currently, the following implementation exists in cpp/cmake_modules/ThirdpartyToolchain.cmake : <img width="770" height="92" alt="Image" src="https://github.com/user-attachments/assets/8016d40b-888f-45db-be8d-d570bce641ad" /> However, it appears to be defined too late for certain build configurations. When using CMake 4.0+, the configuration triggers a fatal error the moment a bundled dependency (like RapidJSON) is evaluated. ### Proposed Adjustment Moving set(CMAKE_POLICY_VERSION_MINIMUM 3.5) to cpp/CMakeLists.txt (before any sub-modules or dependencies are included). ### Component(s) C++ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
