Please use as the minimum version 3.15 *not* 3.5 for macOS.

The project will compile with 3.5 (version of 2016-04-15), but there are problems to be expected with rpath on macOS, hence the minimum version should be set to 3.12 (version of 2018-11-02) for macOS, something like this:

   if (APPLE)
   *# apple builds with cmake version smaller than 3.12 have an @rpath problem*
        cmake_minimum_required (VERSION*3.12*)
   else ()
        # for other platforms
        cmake_minimum_required (VERSION 2.8.12)
   endif ()

---rony


On 01.05.2025 23:12, ooRexx wrote:
Hi René,

Erich already hinted at this, I have made the change to macOS and one other platform but I might need to do it for all platforms. I will see when the system builds the next time.

This might be the result of me trying to keep all platforms “updated” and “Upgraded” since I jogged all the animals in the Zoo today, on the 1st of the month.

I guess downgrading CMake to something between 3.5 and 4.01 might make it work again but that would be just plaster on a wound, right?

Let’s see if this workaround solves the problem, than we can go ahead and put up a release candidate soon.

Hälsningar/Regards/Grüsse,
ooRexx
oor...@jonases.se



Am 01.05.2025 um 18:47 schrieb René Jansen <rvjan...@xs4all.nl>:

Hi P.O.,

thanks for fixing this. Needed an extra -DCMAKE_POLICY_VERSION_MINIMUM=3.5 but 
everything works.

best regards,

René.

On 1 May 2025, at 17:48, ooRexx <oor...@jonases.se> wrote:

Dear developers,

As of today it is not possible to build ooRexx on macOS Sequoia, at least not 
from Jenkins.

It started by Jenkins complaining that CMake is to old, so I upgraded to the 
latest version 4.0.1

I then amended CMakeLists.txt to reflect this at the very beginning (my 
amendment in red

message(STATUS "CMake version is ${CMAKE_VERSION}")
if (APPLE)
    # apple builds with prior cmake version have an @rpath problem
cmake_minimum_required (VERSION 4.0.1)
else ()
    # for other platforms
cmake_minimum_required (VERSION 2.8.12)
endif ()
# CMP0091 introduced in 3.15 must stay OLD for our /MD -> /MT hack to work
cmake_policy(VERSION 2.8...3.3)

When building it stops more or less immediately with this information:

No emails were triggered.
Copied 16 artifacts from "ooRexx-docs-build" build number 154
[ooRexx-macOS15-X86_64-build] $ /bin/sh -xe /var/folders/mb/6jv9bq496wgckjj40cc5l3_h0000gp/T/jenkins77377995241273722.sh
+ /bin/rm -dfr /Users/jenkins/Applications/ooRexx5
+ /bin/rm -dfr oorexxBuild/CMakeCache.txt oorexxBuild/CMakeFiles
+ /bin/mkdir -p oorexxBuild
+ cd oorexxBuild
+ /usr/local/bin/cmake -G 'Unix Makefiles' -DBUILD_OSX_UNIVERSAL_BINARIES=1 -DBUILD_DMG=1 -DOS_DIST=macos -DCMAKE_BUILD_TYPE=RELEASE -DDOC_SOURCE_DIR=/Users/jenkins/workspace/ooRexx-macOS15-X86_64-build/oorexxBuild/../oorexxDocs/pdf_files '-DCMAKE_INSTALL_PREFIX=~/Applications/ooRexx5' ../oorexxSVN
-- CMake version is 4.0.1
CMake Error at CMakeLists.txt:51 (cmake_policy):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Line 51 referred to is the line

cmake_policy(VERSION 2.8…3.3)

I did not date to change for the other platforms because of the remark in the line before line 51 since I do not know what “hack” this is.

What are my options?

Should I try to move cmake_policy(VERSION 2.8…3.3) inside the else - endif so that it does not hit macOS?

OR should we try something else?

Unless this is solved I cannot build on macOS Sequoia.

Hälsningar/Regards/Grüsse,
ooRexx
oor...@jonases.se

_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to