Hi all,
many apologizes for the newbie question but I've a small issue with cmake
2.8.10.2 and ruby 1.91 on Windows7
I'd like create a simple binder between C++ and ruby but cmake is not able
to find the library:
Here is my short CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(extRubyCmake)
SET(_RUBY_DEBUG_OUTPUT TRUE)
find_package( Ruby REQUIRED )
MESSAGE(STATUS "Ruby executable: ${RUBY_EXECUTABLE}")
MESSAGE(STATUS "Ruby vendor arch dir: ${RUBY_VENDORARCH_DIR}")
MESSAGE(STATUS "Ruby include path: ${RUBY_INCLUDE_PATH}")
include_directories(${RUBY_INCLUDE_DIRS})
FILE(GLOB DOT_CPP ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
FILE(GLOB DOT_H ${CMAKE_CURRENT_SOURCE_DIR}/src/*.h)
INCLUDE_DIRECTORIES(AFTER SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/src)
add_library(extRubyCmake ${DOT_CPP} ${DOT_H})
target_link_libraries(extRubyCmake ${RUBY_LIBRARY} )
I got this error:
--------FindRuby.cmake debug------------
_RUBY_POSSIBLE_EXECUTABLE_NAMES: ruby;ruby1.9;ruby19;ruby1.8;ruby18
_RUBY_POSSIBLE_LIB_NAMES:
ruby;ruby-static;ruby1.9;ruby19;ruby-1.9;ruby-1.9.1;msvcr-ruby191;msvcr-ruby191-static;msvcrt-ruby191;msvcrt-ruby191-static
RUBY_ARCH_DIR: C:/Ruby193/lib/ruby/1.9.1/i386-mingw32
RUBY_HDR_DIR: C:/Ruby193/include/ruby-1.9.1
RUBY_POSSIBLE_LIB_DIR: C:/Ruby193/lib
Found RUBY_VERSION: "1.9.1" , short: "1.9", nodot: "19"
_RUBY_REQUIRED_VARS:
RUBY_EXECUTABLE;RUBY_INCLUDE_DIR;RUBY_LIBRARY;RUBY_CONFIG_INCLUDE_DIR
RUBY_EXECUTABLE: C:/Ruby193/bin/ruby.exe
RUBY_LIBRARY: RUBY_LIBRARY-NOTFOUND
RUBY_INCLUDE_DIR: C:/Ruby193/include/ruby-1.9.1
RUBY_CONFIG_INCLUDE_DIR: C:/Ruby193/include/ruby-1.9.1/i386-mingw32
--------------------
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97
(message):
Could NOT find Ruby (missing: RUBY_LIBRARY) (found version "1.9.1")
Call Stack (most recent call first):
C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291
(_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindRuby.cmake:230
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:15 (find_package)
Any Idea?
Thanx in advance
Dario
--
View this message in context:
http://cmake.3232098.n2.nabble.com/newbie-FindRuby-cmake-win7-tp7582742.html
Sent from the CMake mailing list archive at Nabble.com.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake