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:
parent
232a88101b
commit
90890e46a9
|
@ -56,7 +56,7 @@
|
||||||
#
|
#
|
||||||
# Require 3.5 for batch copy multiple files
|
# 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)
|
IF(DOTNET_FOUND)
|
||||||
RETURN()
|
RETURN()
|
||||||
|
@ -68,6 +68,9 @@ SET(DOTNET_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|
||||||
IF(NOT DOTNET_EXE)
|
IF(NOT DOTNET_EXE)
|
||||||
SET(DOTNET_FOUND FALSE)
|
SET(DOTNET_FOUND FALSE)
|
||||||
|
IF(Dotnet_FIND_REQUIRED)
|
||||||
|
MESSAGE(SEND_ERROR "Command 'dotnet' is not found.")
|
||||||
|
ENDIF()
|
||||||
RETURN()
|
RETURN()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue