Skip to content

[CMake] Use precondition in _add_swift_lipo_target #5067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions cmake/modules/AddSwift.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,8 @@ endfunction()
# # lipo'd into the output.
# )
function(_add_swift_lipo_target target output)
if("${target}" STREQUAL "")
message(FATAL_ERROR "target is required")
endif()

if("${output}" STREQUAL "")
message(FATAL_ERROR "output is required")
endif()
precondition(target MESSAGE "target is required")
precondition(output MESSAGE "output is required")

set(source_targets ${ARGN})

Expand Down