[Bug 782] New: typelib needs cmake =<2.6.4

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=782

Summary: typelib needs cmake =<2.6.4
Product: Toolchain
Version: 2.0.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Typelib
AssignedTo: orocos-dev [..] ...
ReportedBy: leopold [dot] palomo [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

Hi,

cmake in typelib doesn't work. It shows the attached message. However, with
cmake 2.6.4 it works perfectly. So, or cmake_minimum_required should be added
to the cmakelist.

I have only tested with 2.6.4 and 2.6.0 so i don't know if it works with the
middle versions.

-------------------------------------------------------------------

CMake Error at cmake/FindRuby.cmake:52 (IF):
if had incorrect arguments: "${Ruby_FIND_VERSION_SHORT_NODOT}" VERSION_LESS
"19" (Unknown arguments specified).
Call Stack (most recent call first):
cmake/RubyExtensions.cmake:12 (FIND_PACKAGE)
CMakeLists.txt:58 (INCLUDE)

CMake Error at cmake/FindRuby.cmake:54 (ENDIF):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
cmake/RubyExtensions.cmake:12 (FIND_PACKAGE)
CMakeLists.txt:58 (INCLUDE)

-- lookign for config.h
-- ruby1.8ruby-staticruby1.8
-- Found Ruby: /usr/bin/ruby
-- using Ruby version 1.8.7
CMake Error at cmake/FindRuby.cmake:52 (IF):
if had incorrect arguments: "${Ruby_FIND_VERSION_SHORT_NODOT}" VERSION_LESS
"19" (Unknown arguments specified).
Call Stack (most recent call first):
cmake/RubyExtensions.cmake:12 (FIND_PACKAGE)
bindings/ruby/CMakeLists.txt:1 (INCLUDE)

CMake Error at cmake/FindRuby.cmake:54 (ENDIF):
endif An ENDIF command was found outside of a proper IF ENDIF structure.
Or its arguments did not match the opening IF command.
Call Stack (most recent call first):
cmake/RubyExtensions.cmake:12 (FIND_PACKAGE)
bindings/ruby/CMakeLists.txt:1 (INCLUDE)