cmake: Fix runtime library install location in mingw

This install DLLs in bin directory instead of lib.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
This commit is contained in:
Biswapriyo Nath 2022-04-22 20:59:50 +05:30
parent 0f2e87bdf5
commit d7e0ee42b8
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
Changes
* cmake: Fix runtime library install location in mingw
This install DLLs in bin directory instead of lib.

View File

@ -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)