Fix cross compilation of C# DLL.
@@ -827,7 +827,7 @@ if(${TINYSPLINE_BINDING_REQUESTED})
SWIG_ARGS -namespace TinySpline
)
# DLL
- if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
if(TINYSPLINE_CSHARP_FRAMEWORK_VERSION STREQUAL "")
set(TINYSPLINE_CSHARP_FRAMEWORK_VERSION
"3.5" CACHE STRING "Autodetected."
