Skip to content

cmake VERSION_LESS_EQUAL #866

Closed
Closed
@malytomas

Description

@malytomas

Older versions of cmake, according to documentation: https://cmake.org/cmake/help/v3.5/command/if.html , do not know VERSION_LESS_EQUAL, just VERSION_LESS.

This leads to errors:

CMake Error at somewhere/jsoncpp/CMakeLists.txt:18 (if):
  if given arguments:

    "3.5.1" "VERSION_LESS_EQUAL" "3.13.1"

  Unknown arguments specified

This is the offending line:

if("${CMAKE_VERSION}" VERSION_LESS_EQUAL "${JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION}")

Cmake 3.7 seems to be the first version to support VERSION_LESS_EQUAL.

Metadata

Metadata

Assignees

Labels

bugbuild or testingcmake, meson, continuous integration, or testing related

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions