cmake: require mcs, not dmcs, and drop dmcs support

dmcs was noted as deprecated in its startup message script many years
ago (2016), and dmcs itself was *actually* deprecated even years before
that -- 'dmcs' itself only executes 'mcs' with the .NET 4.0 SDK enabled
anyway.

Since CMake will be the new primary build system, let's go ahead and
drop support for dmcs entirely in this setup.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2019-05-04 14:14:03 -05:00 committed by Alex Miller
parent 8f98104f92
commit 084c049e64
1 changed files with 6 additions and 16 deletions

View File

@ -4,24 +4,14 @@ if(WIN32)
enable_language(CSharp)
else()
# for other platforms we currently use mono
find_program(MONO_EXECUTABLE mono)
find_program(MCS_EXECUTABLE dmcs)
if (NOT MONO_EXECUTABLE)
message(FATAL_ERROR "Could not find 'mono' executable!")
endif()
find_program(MCS_EXECUTABLE mcs)
if (NOT MCS_EXECUTABLE)
find_program(MCS_EXECUTABLE mcs)
endif()
set(MONO_FOUND FALSE CACHE INTERNAL "")
if (NOT MCS_EXECUTABLE)
find_program(MCS_EXECUTABLE mcs)
endif()
if (MONO_EXECUTABLE AND MCS_EXECUTABLE)
set(MONO_FOUND True CACHE INTERNAL "")
endif()
if (NOT MONO_FOUND)
message(FATAL_ERROR "Could not find mono")
message(FATAL_ERROR "Could not find 'mcs' executable, which is part of Mono!")
endif()
endif()