Skip to content

Building from source fails with cmake version 3.31 #11116

Description

@stefanfrede

I get the following error when trying to build from source:

cmake .

-- Setting build type to default 'RelWithDebInfo'
-- Trying to use PCRE2 from the system
-- Rust Target: x86_64-unknown-linux-gnu
CMake Error at cmake/Tests.cmake:54 (cmake_policy):
  Policy CMP0037 may not be set to OLD behavior because this version of CMake
  no longer supports it.  The policy was introduced in CMake version 3.0.0,
  and use of NEW behavior is now required.

  Please either update your CMakeLists.txt files to conform to the new
  behavior or use an older version of CMake that still supports the old
  behavior.  Run cmake --help-policy CMP0037 for more information.
Call Stack (most recent call first):
  CMakeLists.txt:75 (include)


-- The following features have been enabled:

 * gettext, translate messages with gettext

-- The following OPTIONAL packages have been found:

 * Gettext

-- The following REQUIRED packages have been found:

 * Rust

-- The following features have been disabled:

 * Documentation, user manual and documentation

CMake Error at cmake/Tests.cmake:55 (add_custom_target):
  The target name "test" is reserved when CTest testing is enabled.
Call Stack (most recent call first):
  CMakeLists.txt:75 (include)

The last time I built from source was around Christmas last year and it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions