summaryrefslogtreecommitdiffstats
path: root/Tests/FindRuby/Rvm/RvmStandard.cmake
blob: 26befdb7b899c90f422cca8db79a4a3c6cdeb453 (plain)
1
2
3
4
5
6
7
8
9
set(CMAKE_FIND_LIBRARY_PREFIXES "")
set(CMAKE_FIND_LIBRARY_SUFFIXES "")

set (Ruby_FIND_VIRTUALENV STANDARD)
find_package (Ruby REQUIRED)

if (RUBY_EXECUTABLE MATCHES "^${RUBY_HOME}/.+")
  message (FATAL_ERROR "RVM ruby unexpectedly found at ${RUBY_EXECUTABLE}, matches ${RUBY_HOME}")
endif()