summaryrefslogtreecommitdiffstats
path: root/Tests/FindRuby/FailExact
diff options
context:
space:
mode:
authorJulien Marrec <julien.marrec@gmail.com>2020-02-21 15:46:24 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-16 17:33:27 (GMT)
commitb00d736a0b47fee296e136fcd3511e51cb63468c (patch)
tree57cfbae9bf93d2f218a81da859679fc8d55afdb1 /Tests/FindRuby/FailExact
parentffa08d256fa0aaa52afcb05b50f4d4a485d84171 (diff)
downloadCMake-b00d736a0b47fee296e136fcd3511e51cb63468c.zip
CMake-b00d736a0b47fee296e136fcd3511e51cb63468c.tar.gz
CMake-b00d736a0b47fee296e136fcd3511e51cb63468c.tar.bz2
FindRuby: Add dedicated tests
Issue: #20370
Diffstat (limited to 'Tests/FindRuby/FailExact')
-rw-r--r--Tests/FindRuby/FailExact/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FindRuby/FailExact/CMakeLists.txt b/Tests/FindRuby/FailExact/CMakeLists.txt
new file mode 100644
index 0000000..1ebc0ae
--- /dev/null
+++ b/Tests/FindRuby/FailExact/CMakeLists.txt
@@ -0,0 +1,8 @@
+cmake_minimum_required(VERSION 3.17)
+project(TestRubyFailExact LANGUAGES NONE)
+
+# Should always fail since there is NO ruby 1.9.9 (goes from 1.9.3 to 2.0.0)
+find_package(Ruby 1.9.9 EXACT REQUIRED)
+if (NOT Ruby_FOUND)
+ message (FATAL_ERROR "Failed to find Ruby 1.9.9")
+endif()