diff --git a/Package.swift b/Package.swift index d8106935482..f707a26346c 100644 --- a/Package.swift +++ b/Package.swift @@ -158,7 +158,7 @@ let package = Package( exclude: ["CMakeLists.txt"], swiftSettings: [ .unsafeFlags(["-package-description-version", "999.0"]), - .unsafeFlags(["-enable-library-evolution"], .when(platforms: [.macOS])) + .unsafeFlags(["-enable-library-evolution"]), ] ), @@ -170,7 +170,7 @@ let package = Package( exclude: ["CMakeLists.txt"], swiftSettings: [ .unsafeFlags(["-package-description-version", "999.0"]), - .unsafeFlags(["-enable-library-evolution"], .when(platforms: [.macOS])) + .unsafeFlags(["-enable-library-evolution"]), ] ), diff --git a/Sources/PackageDescription/CMakeLists.txt b/Sources/PackageDescription/CMakeLists.txt index 40f62b5fe34..ed0e9b97c5d 100644 --- a/Sources/PackageDescription/CMakeLists.txt +++ b/Sources/PackageDescription/CMakeLists.txt @@ -24,10 +24,10 @@ add_library(PackageDescription target_compile_options(PackageDescription PUBLIC $<$:-package-description-version$999.0>) +target_compile_options(PackageDescription PUBLIC + $<$:-enable-library-evolution>) if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin) - target_compile_options(PackageDescription PUBLIC - $<$:-enable-library-evolution>) set(SWIFT_INTERFACE_PATH ${CMAKE_BINARY_DIR}/pm/ManifestAPI/PackageDescription.swiftinterface) target_compile_options(PackageDescription PUBLIC $<$:-emit-module-interface-path$${SWIFT_INTERFACE_PATH}>) diff --git a/Sources/PackagePlugin/CMakeLists.txt b/Sources/PackagePlugin/CMakeLists.txt index 49bfa559467..ac30db77e1a 100644 --- a/Sources/PackagePlugin/CMakeLists.txt +++ b/Sources/PackagePlugin/CMakeLists.txt @@ -23,10 +23,10 @@ add_library(PackagePlugin SHARED target_compile_options(PackagePlugin PUBLIC $<$:-package-description-version$999.0>) +target_compile_options(PackagePlugin PUBLIC + $<$:-enable-library-evolution>) if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin) - target_compile_options(PackagePlugin PUBLIC - $<$:-enable-library-evolution>) set(SWIFT_INTERFACE_PATH ${CMAKE_BINARY_DIR}/pm/PluginAPI/PackagePlugin.swiftinterface) target_compile_options(PackagePlugin PUBLIC $<$:-emit-module-interface-path$${SWIFT_INTERFACE_PATH}>)