From 382f25a0bd356aeed0311b3f26a436b50641e4a8 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 31 Aug 2023 16:12:40 -0700 Subject: [PATCH] build: set the `CMAKE_RUNTIME_OUTPUT_DIRECTORY` Add a `CMAKE_RUNTIME_OUTPUT_DIRECTORY` to co-locate the runtime components which is important for resolving the interdependencies. Without this the libraries are not really usable. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25df18647c7..45f7d44795a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,7 @@ set(SWIFT_HOST_LIBRARIES_SUBDIRECTORY "swift/host") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}") +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") set(CMAKE_MACOSX_RPATH YES)