coinor-cmake icon indicating copy to clipboard operation
coinor-cmake copied to clipboard

cmake error "Unknown arguments"

Open kingaj12 opened this issue 7 years ago • 5 comments

Hi - thanks for doing this! I am very much looking forward to using it.

I ran the cmake command you recommended and got the following error

CMake Error at Clp/CMakeLists.txt:242 (if):
  if given arguments:
"CMAKE_COMPILER_IS_GNUCXX" "AND" "(" "CMAKE_CXX_COMPILER_VERSION" "VERSION_GREATER_EQUAL" "4.4" ")"
  Unknown arguments specified
-- Configuring incomplete, errors occurred!

I am using gcc and cmake versions:

$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
$ cmake --version
cmake version 3.5.1

kingaj12 avatar Oct 05 '18 18:10 kingaj12

Thanks for the report. I will bet that the problem comes from VERSION_GREATER_EQUAL which was certainly not available in cmake 3.5.1 ... I try to find a fix and commit this ASAP

ycollet avatar Oct 08 '18 14:10 ycollet

VERSION_GREATER_EQUAL has been introduced in 3.7.0 ...

ycollet avatar Oct 08 '18 14:10 ycollet

VERSION_GREATER_EQUAL has been introduced in 3.7.0 ...

commit da5b2ea26427b7220c4d41c5b6e4c9e460baaa7c fix this problem

ycollet avatar Oct 08 '18 14:10 ycollet

OK - thanks for being so responsive!! But I should probably try to install cmake 3.7.0. Do you know if there is a reason that Ubuntu apt is behind?

kingaj12 avatar Oct 08 '18 14:10 kingaj12

No idea why ubuntu has an old version of cmake. Maybe it's a conservative choice: stay with cmake-3.5 during all life of this ubuntu version

ycollet avatar Oct 08 '18 14:10 ycollet