Skip to content

Commit cb3fec8

Browse files
authored
Fix CoreFoundation install path (swiftlang#5037) (swiftlang#5043)
1 parent 6ad2fe5 commit cb3fec8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/CoreFoundation/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,16 @@ file(COPY
126126
DESTINATION
127127
${CMAKE_BINARY_DIR}/_CModulesForClients/CoreFoundation)
128128

129+
if(NOT BUILD_SHARED_LIBS)
130+
set(swift swift_static)
131+
else()
132+
set(swift swift)
133+
endif()
134+
129135
install(DIRECTORY
130136
include/
131137
DESTINATION
132-
lib/swift/CoreFoundation)
138+
lib/${swift}/CoreFoundation)
133139

134140
if(NOT BUILD_SHARED_LIBS)
135141
install(TARGETS CoreFoundation

0 commit comments

Comments
 (0)