Skip to content

Commit 374cc01

Browse files
authored
Merge pull request #7214 from erg/cmake-overlay-unhardcode
cmake: For overlays, install to sdk-overlay target by default, but don't hardcode it
2 parents 8f19b6a + 9e11d8d commit 374cc01

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)