add_library for CSHARP does not evaluate GenEx source list
After extending the UseSWIG module to set a target property in #18065, I tried to make use of GenEX to create a CSHARP library using add_library(). However the GenEx source list does not seem to be evaluated & I get a warning
CSC : warning CS2008: No source files specified.
When I examine the command line, I don't see the source files listed either.
CoreCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /nowarn:17
01,1702 /nostdlib+ /platform:x86 /errorreport:prompt /warn:3 /define:TRACE;DEBUG /highentropyva- /reference:"C:\Progr
am Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files
(x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /debug+ /debug:full /optimize- /o
ut:obj\Win32\Debug\example.dll /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Team Tools\
Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /target:library /utf8output /langversion:3
Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Profession
al\MSBuild\15.0\Bin\Roslyn
Is this a bug or a known limitation in using GenEX?
All source can be found in https://github.com/inuik/swig.