foundationdb/cmake/EnableCsharp.cmake
Austin Seipp 084c049e64 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>
2019-05-07 16:57:56 -10:00

18 lines
480 B
CMake

if(WIN32)
# C# is currently only supported on Windows.
# On other platforms we find mono manually
enable_language(CSharp)
else()
# for other platforms we currently use mono
find_program(MONO_EXECUTABLE mono)
if (NOT MONO_EXECUTABLE)
message(FATAL_ERROR "Could not find 'mono' executable!")
endif()
find_program(MCS_EXECUTABLE mcs)
if (NOT MCS_EXECUTABLE)
message(FATAL_ERROR "Could not find 'mcs' executable, which is part of Mono!")
endif()
endif()