python-cmake-buildsystem icon indicating copy to clipboard operation
python-cmake-buildsystem copied to clipboard

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

Open moberhuber opened this issue 8 years ago • 0 comments

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.

moberhuber avatar Oct 21 '16 13:10 moberhuber