Out of boredom I'm hacking a bit around in the build system of Subsurface (https://github.com/Subsurface-divelog/subsurface). One of the things I'm looking to is requiring a newer CMake version. And now something strange happens:
The original code: cmake_minimum_required(VERSION 2.8.11) This still works: cmake_minimum_required(VERSION 3.0) like this: -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- Checking for module 'libxml-2.0' -- Found libxml-2.0, version 2.9.4 -- Checking for module 'sqlite3' -- Found sqlite3, version 3.20.1 -- Checking for module 'libxslt' -- Found libxslt, version 1.1.29 -- Checking for module 'libzip' -- Found libzip, version 1.1.3 And this breaks: cmake_minimum_required(VERSION 3.1) like this: -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- Checking for module 'libxml-2.0' -- Found libxml-2.0, version 2.9.1 -- Checking for module 'sqlite3' -- Found sqlite3, version 3.8.2 -- Checking for module 'libxslt' -- Found libxslt, version 1.1.28 -- Checking for module 'libzip' -- No package 'libzip' found I suspected it was a policy thing, so I tried this: foreach(_p RANGE 21 54) cmake_policy(SET CMP00${_p} OLD) endforeach() Does not change anything. Build logs can be found here for 3.0: https://api.travis-ci.org/v3/job/506938155/log.txt And for 3.1: https://api.travis-ci.org/v3/job/506849909/log.txt It's a CMake 3.8.2 actually, which can be found in the mxe tarballs (look in the logs, IIRC it's the first one). Has anyone an idea what's happening there? And even more important: how to get it fixed? The maximum version the requirement can be raised to is 3.5.1 for the moment because of the supported Ubuntu versions (16.04+). Greetings, Eike
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake-developers