Skip to content

Configure fails with "VERSION_EQUAL" in cmake/extensions when cross-compiling for VxWorks #159

@moberhuber

Description

@moberhuber

I'm cross-compiling on an Ubuntu-12.04 host, CMake-3.6.2, using my own toolchain file for VxWorks-GNU. Configure looks good initially, but then fails with the following error:

-- Looking for inflateCopy - not found
CMake Error at cmake/extensions/CMakeLists.txt:3 (if):
  if given arguments:
    "" "VERSION_EQUAL" "1500" "AND" "EQUAL" "8"
  Unknown arguments specified
-- Configuring incomplete, errors occurred!

It looks like the cmake/extensions/CMakeLists.txt has some conditionals on ${MSVC_VERSION} but not protected if ${MSVC_VERSION} is not set. I have a patch working, which I'll contribute by Pull Request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions