On macOS there are a large number of warnings lately that the CMake version 
required is to low:

CMake Deprecation Warning at samples/native.api/CMakeLists.txt:41 
(cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

It seems to be the same warning that we had for the main CMakelists.txt (that 
was fixed by Enrico I think). It is now spreading to all CMakelists.txt files 
further down the path.

If there are no objections I want to include the fix we already have for all 
CMakelists.txt, in other words replace this:

cmake_minimum_required (VERSION 2.6)

With this:

message(STATUS "CMake version is ${CMAKE_VERSION}")
if (APPLE)
# apple build with lower cmake version have an @rpath problem
    cmake_minimum_required (VERSION 3.12)
else()
#for other platforms
    cmake_minimum_required (VERSION 2.8)
endif()
cmake_policy(VERSION 2.8...3.3)

This will also require 2.8 rather than 2.6 for other platforms, which seems to 
make sense from the warnings received. Any objections?

Hälsningar/Regards/Grüsse,
P.O. Jonsson
oor...@jonases.se



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

Reply via email to