Merge pull request #5724 from Biswa96/cmake-mingw

cmake: Fix runtime library install location in mingw
This commit is contained in:
Dave Rodgman 2022-05-25 13:34:43 +01:00 committed by GitHub
commit 32c995afa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 4 deletions

View file

@ -291,7 +291,9 @@ foreach(target IN LISTS target_libraries)
install(
TARGETS ${target}
EXPORT MbedTLSTargets
DESTINATION ${LIB_INSTALL_DIR}
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)