Skip to content

minimum cmake version #18

@timlegge

Description

@timlegge

Same as #4 that was closed I would like to be able to optionally specify a minimum version:

preference: minver 3.15

  1. Check system cmake >= 3.15 great move on
  2. Version available from cmake grab latest (or anything >= the minimum) if not available install from source
  3. Download and build cmake grab latest (or anything >= the minimum)

reason:

IO::Compress::Brotli builds the Brotli library from source and requires cmake >= 3.15. Defaulting to the system version means that the version is of no use in this particular case.

http://www.cpantesters.org/cpan/report/a8d97b88-7695-11ee-a10d-0a0a6e8775ea

Output from '/usr/bin/make':

cp lib/IO/Uncompress/Brotli.pm blib/lib/IO/Uncompress/Brotli.pm
cp lib/IO/Compress/Brotli.pm blib/lib/IO/Compress/Brotli.pm
cd brotli && "/usr/local/bin/cmake" -DCMAKE_MAKE_PROGRAM=make -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed . && make
CMake Error at CMakeLists.txt:4 (cmake_minimum_required):
  CMake 3.15 or higher is required.  You are running version 3.1.3


-- Configuring incomplete, errors occurred!
*** [brotli/libbrotlienc.a] Error code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions