[ 
https://issues.apache.org/jira/browse/THRIFT-5860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17939764#comment-17939764
 ] 

Yuxuan Wang edited comment on THRIFT-5860 at 3/31/25 5:51 PM:
--------------------------------------------------------------

I don't think we can move to cmake 4 any time soon. For example Debian does not 
have it even in unstable/experiment: https://tracker.debian.org/pkg/cmake

A newer version of 3.x (for example, 3.16) is _probably_ fine. But I'm not 
knowledgeable enough to know if we used something that's removed after 3.5.


was (Author: fishywang):
I don't think we can move to cmake 4 any time soon. For example Debian does not 
have it even in unstable/experiment: https://tracker.debian.org/pkg/cmake

A newer version of 3.x (for example, 3.16) is probably fine.

> cmake 3.5 as a minimum version does not work with cmake 4.0.0
> -------------------------------------------------------------
>
>                 Key: THRIFT-5860
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5860
>             Project: Thrift
>          Issue Type: Dependency upgrade
>          Components: Build Process
>    Affects Versions: 0.21.0, 0.22.0
>            Reporter: Alessandro Bellina
>            Priority: Major
>
> With the recent release of cmake 4.0.0 
> ([https://github.com/kitware/cmake/releases)] we noticed an error is now 
> preventing us from building thrift:
> {code:java}
>      [exec] CMake Error at CMakeLists.txt:20 (cmake_minimum_required):
>      [exec]   Compatibility with CMake < 3.5 has been removed from CMake.
>      [exec] 
>      [exec]   Update the VERSION argument <min> value.  Or, use the 
> <min>...<max> syntax
>      [exec]   to tell CMake that the project requires at least <min> but has 
> been updated
>      [exec]   to work with policies introduced by <max> or earlier.
>      [exec] 
>      [exec]   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring 
> anyway. {code}
> We would like to know if thrift could move to something above 3.5 with the 
> next release, so we can build with cmake 4.0.0.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to