3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

api: dotnet: FindDotnet.cmake now handles 'REQUIRED' option.

This commit is contained in:
Yatao Li 2018-09-10 09:34:28 +08:00
parent 232a88101b
commit 90890e46a9

View file

@ -56,7 +56,7 @@
#
# Require 3.5 for batch copy multiple files
CMAKE_MINIMUM_REQUIRED(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.5.0)
IF(DOTNET_FOUND)
RETURN()
@ -68,6 +68,9 @@ SET(DOTNET_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR})
IF(NOT DOTNET_EXE)
SET(DOTNET_FOUND FALSE)
IF(Dotnet_FIND_REQUIRED)
MESSAGE(SEND_ERROR "Command 'dotnet' is not found.")
ENDIF()
RETURN()
ENDIF()