Copy sjlj exception model for mingw32.
@@ -479,8 +479,16 @@ if(TINYSPLINE_RUNTIME_LIBRARIES STREQUAL "")
list(APPEND
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
"${basedir}/libstdc++-6.dll"
- "${basedir}/libgcc_s_seh-1.dll"
"${basedir}/libwinpthread-1.dll")
+ if(TINYSPLINE_PLATFORM_ARCH STREQUAL "x86")
+ list(APPEND
+ CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
+ "${basedir}/libgcc_s_sjlj-1.dll")
+ elseif(TINYSPLINE_PLATFORM_ARCH STREQUAL "x86_64")
+ list(APPEND
+ CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
+ "${basedir}/libgcc_s_seh-1.dll")
+ endif()
endif()
# Override cached variable.
set(TINYSPLINE_RUNTIME_LIBRARIES
