Skip to content

Build broken for VxWorks on RHEL 7 #697

Description

@jphickey

Describe the bug
The newest RHEL 7 comes by default with CMake version 2.8.12.2 in the official OS repos.
However the "VERSION_GREATER_EQUAL" comparison was added in 3.7. Thus the build became broken on this platform after merging #610.

To Reproduce
Attempt to build for VxWorks using RHEL 7.x as the host platform. Make file generation fails immediately with:

CMake Error at /home/jphickey/cfecfs/github/osal/src/os/vxworks/CMakeLists.txt:48 (if):
  if given arguments:

    "CMAKE_SYSTEM_VERSION" "VERSION_GREATER_EQUAL" "7.0"

  Unknown arguments specified

Expected behavior
Build should succeed.

Code snips

if (CMAKE_SYSTEM_VERSION VERSION_GREATER_EQUAL 7.0)

System observed on:
Red Hat Enterprise Linux Workstation release 7.9 (Maipo)

Reporter Info
Joseph Hickey, Vantage Systems, Inc.

Metadata

Metadata

Assignees

No one assigned

    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