diff options
author | Aki <please@ignore.pl> | 2022-02-11 19:04:55 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-02-11 19:04:55 +0100 |
commit | 8539b494cd2ca8470a2c8dfae42ed95881c3b36f (patch) | |
tree | 9a103ee45e8df6a96657ed035b236e883ed9cb28 /contrib | |
parent | b4e3f5d4837e7da50b19a7064318eae5176887d0 (diff) | |
download | starshatter-8539b494cd2ca8470a2c8dfae42ed95881c3b36f.zip starshatter-8539b494cd2ca8470a2c8dfae42ed95881c3b36f.tar.gz starshatter-8539b494cd2ca8470a2c8dfae42ed95881c3b36f.tar.bz2 |
Added needed MinGW runtime libraries to installs
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 3845b71..0c93c9c 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -8,3 +8,9 @@ install( RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX} ) +foreach(LIB IN ITEMS "libstdc++-6.dll" "libwinpthread-1.dll" "libgcc_s_dw2-1.dll") + find_library(LIBRARY_${LIB} ${LIB} PATHS ${CMAKE_FIND_ROOT_PATH}/bin) + if(LIBRARY_${LIB}) + install(FILES ${LIBRARY_${LIB}} DESTINATION ${CMAKE_INSTALL_PREFIX}) + endif() +endforeach() |