diff --git a/Sources/UUID/CMakeLists.txt b/Sources/UUID/CMakeLists.txt index 8ddf42613b..bdbe1beafe 100644 --- a/Sources/UUID/CMakeLists.txt +++ b/Sources/UUID/CMakeLists.txt @@ -23,9 +23,12 @@ set_target_properties(uuid PROPERTIES if(NOT BUILD_SHARED_LIBS) set_property(GLOBAL APPEND PROPERTY Foundation_EXPORTS uuid) - get_swift_host_arch(swift_arch) + # get_swift_host_arch(swift_arch) + + # TODO(drexin): should be installed in architecture specific folder, once + # the layout is fixed for non-Darwin platforms install(TARGETS uuid - ARCHIVE DESTINATION lib/swift_static/$/${swift_arch} - LIBRARY DESTINATION lib/swift_static/$/${swift_arch} + ARCHIVE DESTINATION lib/swift_static/$ + LIBRARY DESTINATION lib/swift_static/$ RUNTIME DESTINATION bin) endif()