Skip to content

Commit f3b7485

Browse files
author
Doug Coleman
committed
cmake: Ensure that CMAKE_CODESIGN is set instead of trying to run empty
commands.
1 parent c317fcb commit f3b7485

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

benchmark/cmake/modules/AddSwiftBenchmarkSuite.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function (swift_benchmark_compile_archopts)
321321
"-c"
322322
"-o" "${objcfile}")
323323

324+
precondition(CMAKE_CODESIGN MESSAGE "CMAKE_CODESIGN is required, please set it")
324325
add_custom_command(
325326
OUTPUT "${OUTPUT_EXEC}"
326327
DEPENDS

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ function(_add_swift_lipo_target)
465465
is_darwin_based_sdk("${LIPO_SDK}" IS_DARWIN)
466466
if(IS_DARWIN)
467467
if(LIPO_CODESIGN)
468+
precondition(CMAKE_CODESIGN MESSAGE "CMAKE_CODESIGN is required, please set it")
468469
set(codesign_command COMMAND "${CMAKE_CODESIGN}" "-f" "-s" "-" "${LIPO_OUTPUT}")
469470
endif()
470471
# Use lipo to create the final binary.

0 commit comments

Comments
 (0)