target_compile_definitions does not appear to work with CSharp language VS10 generator
cmake_minimum_required( VERSION 3.13 )
enable_language(CSharp)
add_library(FooLib SHARED Foo.cs )
# No effect?
target_compile_definitions(FooLib PUBLIC MY_FOO_DEFINE)
Resulting .csproj file does not contain 'MY_FOO_DEFINE' in its DefineConstants nodes as I expect, e.g.:
<DefineConstants>TRACE;DEBUG</DefineConstants>
Not sure if there's some other way that this is supposed to be achieved. target_compile_options
does something different (adds node to .csproj IIRC).