diff --git a/Sources/LLBuildManifest/CMakeLists.txt b/Sources/LLBuildManifest/CMakeLists.txt index 52dfdd97351..e4c3693d52c 100644 --- a/Sources/LLBuildManifest/CMakeLists.txt +++ b/Sources/LLBuildManifest/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(LLBuildManifest +add_library(LLBuildManifest STATIC BuildManifest.swift Command.swift ManifestWriter.swift @@ -22,10 +22,4 @@ target_link_libraries(LLBuildManifest PUBLIC set_target_properties(LLBuildManifest PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) - install(TARGETS LLBuildManifest - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS LLBuildManifest) diff --git a/Sources/PackageCollections/CMakeLists.txt b/Sources/PackageCollections/CMakeLists.txt index 84582082c50..529d1b8222b 100644 --- a/Sources/PackageCollections/CMakeLists.txt +++ b/Sources/PackageCollections/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(PackageCollections +add_library(PackageCollections STATIC Model/Collection.swift Model/CVE.swift Model/License.swift @@ -46,10 +46,4 @@ target_link_libraries(PackageCollections PUBLIC set_target_properties(PackageCollections PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) -install(TARGETS PackageCollections - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageCollections) diff --git a/Sources/PackageCollectionsModel/CMakeLists.txt b/Sources/PackageCollectionsModel/CMakeLists.txt index 2ff224e3cc1..56acd580555 100644 --- a/Sources/PackageCollectionsModel/CMakeLists.txt +++ b/Sources/PackageCollectionsModel/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(PackageCollectionsModel +add_library(PackageCollectionsModel STATIC PackageCollectionModel.swift PackageCollectionModel+v1.swift) target_link_libraries(PackageCollectionsModel PUBLIC @@ -15,10 +15,4 @@ target_link_libraries(PackageCollectionsModel PUBLIC set_target_properties(PackageCollectionsModel PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) -install(TARGETS PackageCollectionsModel - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageCollectionsModel) diff --git a/Sources/PackageCollectionsSigning/CMakeLists.txt b/Sources/PackageCollectionsSigning/CMakeLists.txt index f0df48d0ff0..5d2c9fa1d96 100644 --- a/Sources/PackageCollectionsSigning/CMakeLists.txt +++ b/Sources/PackageCollectionsSigning/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(PackageCollectionsSigning +add_library(PackageCollectionsSigning STATIC Certificate/Certificate.swift Certificate/CertificatePolicy.swift Key/ASN1/ASN1.swift @@ -50,10 +50,4 @@ set_target_properties(PackageCollectionsSigning PROPERTIES target_link_options(PackageCollectionsSigning PRIVATE "$<$:SHELL:-Xlinker -framework -Xlinker Security>") -if(USE_CMAKE_INSTALL) -install(TARGETS PackageCollectionsSigning - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageCollectionsSigning) diff --git a/Sources/PackageFingerprint/CMakeLists.txt b/Sources/PackageFingerprint/CMakeLists.txt index 06dfc0a5570..a7c6387e8b9 100644 --- a/Sources/PackageFingerprint/CMakeLists.txt +++ b/Sources/PackageFingerprint/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(PackageFingerprint +add_library(PackageFingerprint STATIC FilePackageFingerprintStorage.swift Model.swift PackageFingerprintStorage.swift) @@ -19,10 +19,4 @@ target_link_libraries(PackageFingerprint PUBLIC set_target_properties(PackageFingerprint PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) -install(TARGETS PackageFingerprint - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageFingerprint) diff --git a/Sources/PackageRegistry/CMakeLists.txt b/Sources/PackageRegistry/CMakeLists.txt index ff0ad7c4110..6c91099d083 100644 --- a/Sources/PackageRegistry/CMakeLists.txt +++ b/Sources/PackageRegistry/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(PackageRegistry +add_library(PackageRegistry STATIC Registry.swift RegistryConfiguration.swift RegistryClient.swift @@ -22,10 +22,4 @@ target_link_libraries(PackageRegistry PUBLIC set_target_properties(PackageRegistry PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) -install(TARGETS PackageRegistry - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS PackageRegistry) diff --git a/Sources/SPMLLBuild/CMakeLists.txt b/Sources/SPMLLBuild/CMakeLists.txt index 58b49fa5b94..c66a27d053d 100644 --- a/Sources/SPMLLBuild/CMakeLists.txt +++ b/Sources/SPMLLBuild/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(SPMLLBuild +add_library(SPMLLBuild STATIC llbuild.swift) # NOTE(compnerd) workaround for CMake not setting up include flags yet set_target_properties(SPMLLBuild PROPERTIES @@ -18,10 +18,4 @@ target_link_libraries(SPMLLBuild PUBLIC Basics llbuildSwift) -if(USE_CMAKE_INSTALL) -install(TARGETS SPMLLBuild - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS SPMLLBuild) diff --git a/Sources/SourceControl/CMakeLists.txt b/Sources/SourceControl/CMakeLists.txt index 85b00c87729..3e719d03609 100644 --- a/Sources/SourceControl/CMakeLists.txt +++ b/Sources/SourceControl/CMakeLists.txt @@ -6,11 +6,10 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(SourceControl +add_library(SourceControl STATIC GitRepository.swift Repository.swift RepositoryManager.swift) - target_link_libraries(SourceControl PUBLIC Basics PackageModel @@ -22,10 +21,4 @@ target_link_libraries(SourceControl PUBLIC set_target_properties(SourceControl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) -install(TARGETS SourceControl - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS SourceControl) diff --git a/Sources/XCBuildSupport/CMakeLists.txt b/Sources/XCBuildSupport/CMakeLists.txt index 19620640d83..35e3c3af4da 100644 --- a/Sources/XCBuildSupport/CMakeLists.txt +++ b/Sources/XCBuildSupport/CMakeLists.txt @@ -6,14 +6,13 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(XCBuildSupport +add_library(XCBuildSupport STATIC PIF.swift PIFBuilder.swift XCBuildDelegate.swift XCBuildMessage.swift XCBuildOutputParser.swift - XcodeBuildSystem.swift -) + XcodeBuildSystem.swift) target_link_libraries(XCBuildSupport PUBLIC Build TSCBasic @@ -23,10 +22,3 @@ target_link_libraries(XCBuildSupport PUBLIC set_target_properties(XCBuildSupport PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) - -if(USE_CMAKE_INSTALL) -install(TARGETS XCBuildSupport - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif() diff --git a/Sources/Xcodeproj/CMakeLists.txt b/Sources/Xcodeproj/CMakeLists.txt index 8ccae479169..bd107cadd56 100644 --- a/Sources/Xcodeproj/CMakeLists.txt +++ b/Sources/Xcodeproj/CMakeLists.txt @@ -6,7 +6,7 @@ # See http://swift.org/LICENSE.txt for license information # See http://swift.org/CONTRIBUTORS.txt for Swift project authors -add_library(Xcodeproj +add_library(Xcodeproj STATIC generate.swift pbxproj.swift PropertyList.swift @@ -22,9 +22,3 @@ target_link_libraries(Xcodeproj PUBLIC set_target_properties(Xcodeproj PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY}) -if(USE_CMAKE_INSTALL) -install(TARGETS Xcodeproj - ARCHIVE DESTINATION lib - LIBRARY DESTINATION lib - RUNTIME DESTINATION bin) -endif()