diff options
author | Brad King <brad.king@kitware.com> | 2020-03-16 17:47:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-16 18:05:26 (GMT) |
commit | f52f496138380a65790e25ef5c75a114fa4cfd79 (patch) | |
tree | 7d7e687e83d7fc57bb37ca506d558b1092eff2c5 /Modules/FindRuby.cmake | |
parent | b00d736a0b47fee296e136fcd3511e51cb63468c (diff) | |
download | CMake-f52f496138380a65790e25ef5c75a114fa4cfd79.zip CMake-f52f496138380a65790e25ef5c75a114fa4cfd79.tar.gz CMake-f52f496138380a65790e25ef5c75a114fa4cfd79.tar.bz2 |
FindRuby: Provide Ruby_LIBRARIES result variable
The `cmake-developer(7)` manual documents that a plural non-cached
name should be used for results.
Diffstat (limited to 'Modules/FindRuby.cmake')
-rw-r--r-- | Modules/FindRuby.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake index 5df242b..acd67ba 100644 --- a/Modules/FindRuby.cmake +++ b/Modules/FindRuby.cmake @@ -21,8 +21,8 @@ the following variables: full path to the ruby binary ``Ruby_INCLUDE_DIRS`` include dirs to be used when using the ruby library -``Ruby_LIBRARY`` - full path to the ruby library +``Ruby_LIBRARIES`` + libraries needed to use ruby from C. ``Ruby_VERSION`` the version of ruby which was found, e.g. "1.8.7" ``Ruby_FOUND`` @@ -298,6 +298,10 @@ endif() FIND_PACKAGE_HANDLE_STANDARD_ARGS(Ruby REQUIRED_VARS ${_Ruby_REQUIRED_VARS} VERSION_VAR Ruby_VERSION ) +if(Ruby_FOUND) + set(Ruby_LIBRARIES ${Ruby_LIBRARY}) +endif() + mark_as_advanced( Ruby_EXECUTABLE Ruby_LIBRARY |