diff --git a/ChangeLog.d/cmake_fix_dll_install.txt b/ChangeLog.d/cmake_fix_dll_install.txt new file mode 100644 index 0000000000..df51c650bb --- /dev/null +++ b/ChangeLog.d/cmake_fix_dll_install.txt @@ -0,0 +1,3 @@ +Changes + * cmake: Fix runtime library install location in mingw + This install DLLs in bin directory instead of lib. diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index d8d28408f2..a726e11fff 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -291,7 +291,9 @@ foreach(target IN LISTS target_libraries) install( TARGETS ${target} EXPORT MbedTLSTargets - DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) endforeach(target)