Require CMake 3.1 if TD_ENABLE_DOTNET specified.

GitOrigin-RevId: 229e41869dcd640d2454fc8453914f6c8daf9b8b
This commit is contained in:
levlam 2018-02-28 02:22:01 +03:00
parent c79a57093a
commit b94927c13c

View File

@ -5,6 +5,10 @@ project(TDLib VERSION 1.1.3 LANGUAGES CXX C)
option(TD_ENABLE_JNI "Use \"ON\" to enable JNI-compatible TDLib API.")
option(TD_ENABLE_DOTNET "Use \"ON\" to enable generation of C++/CLI or C++/CX TDLib API bindings.")
if (TD_ENABLE_DOTNET AND (CMAKE_VERSION VERSION_LESS "3.1.0"))
message(FATAL_ERROR "CMake 3.1.0 or higher is required. You are running version ${CMAKE_VERSION}.")
endif()
if (NOT DEFINED CMAKE_MODULE_PATH)
set(CMAKE_MODULE_PATH "")
endif()