cmake/Tests/FindRuby/FailExact/CMakeLists.txt

9 lines
277 B
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
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()