Skip to content

Commit 9928c28

Browse files
committed
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.
1 parent 4215ab9 commit 9928c28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ set(SWIFT_HOST_LIBRARIES_SUBDIRECTORY "swift/host")
2020

2121
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}")
2222
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY}")
23+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
2324

2425
set(CMAKE_MACOSX_RPATH YES)
2526

0 commit comments

Comments
 (0)