Skip to content

Commit 9e11d8d

Browse files
author
Doug Coleman
committed
cmake: For overlays, install to sdk-overlay target by default, but don't
hardcode it. rdar://problem/21952953
1 parent 37774eb commit 9e11d8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,10 @@ function(add_swift_library name)
13431343
set(SWIFTLIB_IS_STDLIB TRUE)
13441344
set(SWIFTLIB_TARGET_LIBRARY TRUE)
13451345

1346-
# There are no experimental SDK overlays.
1347-
set(SWIFTLIB_INSTALL_IN_COMPONENT sdk-overlay)
1346+
# Install to sdk-overlay by default, but don't hardcode it
1347+
if(NOT SWIFTLIB_INSTALL_IN_COMPONENT)
1348+
set(SWIFTLIB_INSTALL_IN_COMPONENT sdk-overlay)
1349+
endif()
13481350
endif()
13491351

13501352
# Standard library is always a target library.

0 commit comments

Comments
 (0)