Re-add csc specific call to CMakeLists.txt.
@@ -670,6 +670,16 @@ if (SWIG_FOUND)
PATHS "C:/Windows/Microsoft.NET/Framework/v4.5"
)
if(TINYSPLINE_CSHARP_COMPILER)
+ if(TINYSPLINE_CSHARP_COMPILER MATCHES "csc$|csc.exe$")
+ # csc neither supports the 'sdk' flag nor '/' in 'recursive'
+ add_custom_command(TARGET ${TINYSPLINE_CSHARP_CMAKE_TARGET} POST_BUILD
+ COMMAND
+ ${TINYSPLINE_CSHARP_COMPILER}
+ /target:library
+ /out:"${TINYSPLINE_CSHARP_INTERFACE_FILE}"
+ /recurse:"${TINYSPLINE_CSHARP_SOURCE_DIRECTORY}\\*.cs"
+ )
+ else()
add_custom_command(TARGET ${TINYSPLINE_CSHARP_CMAKE_TARGET} POST_BUILD
COMMAND
${TINYSPLINE_CSHARP_COMPILER}
@@ -680,6 +690,7 @@ if (SWIG_FOUND)
)
endif()
endif()
+ endif()
# Go (not fully supported yet)
if(TINYSPLINE_ENABLE_GOLANG)
