Enhance search of libstdc++-6.dll
@@ -807,6 +807,15 @@ if(TINYSPLINE_RUNTIME_LIBRARIES STREQUAL "")
include(InstallRequiredSystemLibraries)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
get_filename_component(basedir ${CMAKE_CXX_COMPILER} DIRECTORY)
+ if(NOT EXISTS "${basedir}/libstdc++-6.dll")
+ set(basedir "${CMAKE_INSTALL_PREFIX}/bin")
+ if(NOT EXISTS "${basedir}/libstdc++-6.dll")
+ set(basedir "${CMAKE_INSTALL_PREFIX}/lib")
+ if(NOT EXISTS "${basedir}/libstdc++-6.dll")
+ message(FATAL_ERROR "Cannot find libstdc++-6.dll")
+ endif()
+ endif()
+ endif()
list(APPEND CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
"${basedir}/libstdc++-6.dll"
)
