Re: CMake 4

JVZ <[email protected]> Tue, 30 Dec 2025 11:30:10 -0600
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization FOX-Toolkit
Message-ID <20251230113010.6cdbbe40@resurgam>
On Tue, 30 Dec 2025 12:11:03 +0100
Enno Rehling <[email protected]> wrote:

>On 12/29/2025 00:20, JVZ wrote:
>> On Sun, 28 Dec 2025 11:15:52 +0100
>> Enno Rehling <[email protected]> wrote:
>>   
>>> On 12/27/2025 20:19, Roland Hughes via Foxgui-users wrote:  
>>>> Honestly, I hate MSYS2. Actually I hate anything to do with "Linux
>>>> emulation" on Windows for building Windows apps.  
>>>
>>> I agreee whole-heartedly. Trying to pretend that Windows can be made to
>>> work like a UNIX is misguided.  
>> 
>> MSYS2 ucrt does NOT do that, if I understand it correctly.  
>
>Apologies, I was thinking of cygwin, which does.
>
>Someone mentioned vcpkg in this thread: While I'm usually in favor of 
>using whatever OS package manager to install dependencies (apt, rpm, 
>brew, or ports), in cases where there is none (Windows, either 32 or 64 
>bit), vcpkg does a good job. I've never used it outside of Windows, but 
>apparently that should also work (unless, like me, you prefer the native 
>package manager).
>
>>> Regarding the original post: A lot of distributions still ship with
>>> CMake 3, appartently. My Debian 13 comes with CMake 3.31.6, to name one.
>>> I have never needed to set cmake_minimum_required higher than 3.13 in
>>> the past, and hope this doesn't mean I need to change my projects?  
>> 
>> It looks like I'm on CMake 3.28.3; this is running Mint 22.2 "Zara" so
>> I'm pretty up-to-date.  
>
>My point seems made: It may be too early to go all-in on CMake 4, and 
>too big a step to take when introducing CMake to Fox all at once. What 
>would be the advantage of using CMake 4 over 3? Are there must-have 
>features that building Fox depends on?

I changed the top line in Sander's CMakeLists.txt to: 

	cmake_minimum_required(VERSION 3.28)

And it appeared to compile w/o a hitch.

At least on Linux there doesn't seem to be a compelling need for cmake4.

I am planning to come up with cmake config which requires some version
of cmake3 or up; it seems the most common out there at this point.

I should check what version is on current raspbian operating system
as well, as I'm planning to extend support for aarch64.



       -- JVZ



-- 
+----------------------------------------------------------------------------+
| Copyright (C) 09:50 12/30/2025 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+