Skip to content

Commit 406e2f8

Browse files
compnerdaciidgh
authored andcommitted
bootstrap: silence warnings about colliding libraries
We were previously overwriting PackageDescription.dll and would have inconsistent builds. Adjust the rules to make the builds deterministic.
1 parent 02177c7 commit 406e2f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/PackageDescription4/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ foreach(PACKAGE_DESCRIPTION_VERSION 4 4_2)
2323
set_target_properties(PD${PACKAGE_DESCRIPTION_VERSION} PROPERTIES
2424
Swift_MODULE_NAME PackageDescription
2525
Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/runtimes/${PACKAGE_DESCRIPTION_VERSION}
26+
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/runtimes/${PACKAGE_DESCRIPTION_VERSION}
2627
OUTPUT_NAME PackageDescription
28+
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/runtimes/${PACKAGE_DESCRIPTION_VERSION}
2729
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/runtimes/${PACKAGE_DESCRIPTION_VERSION}
28-
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/runtimes/${PACKAGE_DESCRIPTION_VERSION})
30+
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/runtimes/${PACKAGE_DESCRIPTION_VERSION})
2931
endforeach()
3032

3133
install(TARGETS PD4 PD4_2

0 commit comments

Comments
 (0)