Skip to content

Commit f300b80

Browse files
committed
build: prevent FILE_DEPENDS from being used
The `FILE_DEPENDS` option is used in exactly one location: swiftCore. This prevention sets the groundwork for removing the option. Dependencies should be tracked at the target level.
1 parent 288a725 commit f300b80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,9 @@ function(add_swift_host_library name)
15411541
if(ASHL_DEPENDS)
15421542
message(SEND_ERROR "library ${name} is using DEPENDS parameter which is deprecated. Please use add_dependencies instead")
15431543
endif()
1544+
if(ASHL_FILE_DEPENDS)
1545+
message(SEND_ERROR "library ${name} is using FILE_DEPENDS parameter which is deprecated.")
1546+
endif()
15441547
if(ASHL_LINK_LIBRARIES)
15451548
message(SEND_ERROR "library ${name} is using LINK_LIBRARIES parameter which is deprecated. Please use target_link_libraries instead")
15461549
endif()
@@ -1560,7 +1563,6 @@ function(add_swift_host_library name)
15601563
SDK ${SWIFT_HOST_VARIANT_SDK}
15611564
ARCHITECTURE ${SWIFT_HOST_VARIANT_ARCH}
15621565
LLVM_LINK_COMPONENTS ${ASHL_LLVM_LINK_COMPONENTS}
1563-
FILE_DEPENDS ${ASHL_FILE_DEPENDS}
15641566
INSTALL_IN_COMPONENT "dev"
15651567
)
15661568

0 commit comments

Comments
 (0)