summaryrefslogtreecommitdiffstats
path: root/Tests/FindRuby/FailExact/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindRuby/FailExact/CMakeLists.txt')
-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()