diff --git a/Sources/UUID/CMakeLists.txt b/Sources/UUID/CMakeLists.txt index bdbe1beafe..fea52c7396 100644 --- a/Sources/UUID/CMakeLists.txt +++ b/Sources/UUID/CMakeLists.txt @@ -30,5 +30,5 @@ if(NOT BUILD_SHARED_LIBS) install(TARGETS uuid ARCHIVE DESTINATION lib/swift_static/$ LIBRARY DESTINATION lib/swift_static/$ - RUNTIME DESTINATION bin) + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) endif() diff --git a/cmake/modules/SwiftSupport.cmake b/cmake/modules/SwiftSupport.cmake index 517df86e65..ffb24527eb 100644 --- a/cmake/modules/SwiftSupport.cmake +++ b/cmake/modules/SwiftSupport.cmake @@ -70,7 +70,7 @@ function(_install_target module) install(TARGETS ${module} ARCHIVE DESTINATION lib/${swift}/${swift_os} LIBRARY DESTINATION lib/${swift}/${swift_os} - RUNTIME DESTINATION bin) + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) if(type STREQUAL EXECUTABLE) return() endif()