We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38de344 + 87f61d4 commit 02122f6Copy full SHA for 02122f6
cmake/modules/AddSwift.cmake
@@ -1870,6 +1870,13 @@ function(add_swift_library name)
1870
FILES "${UNIVERSAL_LIBRARY_NAME}"
1871
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/${resource_dir}/${resource_dir_sdk_subdir}"
1872
PERMISSIONS ${file_permissions})
1873
+ swift_is_installing_component("${SWIFTLIB_INSTALL_IN_COMPONENT}" is_installing)
1874
+
1875
+ if(NOT is_installing)
1876
+ set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${VARIANT_NAME})
1877
+ else()
1878
+ set_property(GLOBAL APPEND PROPERTY SWIFT_EXPORTS ${VARIANT_NAME})
1879
+ endif()
1880
endif()
1881
1882
# If we built static variants of the library, create a lipo target for
0 commit comments