File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Sources/PackageDescription4 Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 39
39
find_package (LLBuild CONFIG REQUIRED )
40
40
endif ()
41
41
42
+ find_package (dispatch QUIET )
43
+ find_package (Foundation QUIET )
44
+
42
45
add_subdirectory (Sources )
43
46
44
47
if (SWIFTPM_BUILD_DIR )
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ foreach(PACKAGE_DESCRIPTION_VERSION 4 4_2)
42
42
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /pm/${PACKAGE_DESCRIPTION_VERSION}
43
43
)
44
44
45
+ if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
46
+ target_link_libraries (PD${PACKAGE_DESCRIPTION_VERSION} PRIVATE
47
+ Foundation )
48
+ endif ()
49
+
45
50
if (CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin )
46
51
install (FILES
47
52
${CMAKE_BINARY_DIR} /pm/${PACKAGE_DESCRIPTION_VERSION}/PackageDescription.swiftinterface
You can’t perform that action at this time.
0 commit comments