Skip to content

Commit 3bf75e7

Browse files
committed
[CMake] Typo target -> target_name
1 parent 371dfe8 commit 3bf75e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddPureSwift.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ function(_set_pure_swift_package_options target_name package_name)
127127

128128
# Enable package CMO if possible
129129
if(Swift_COMPILER_PACKAGE_CMO_SUPPORT STREQUAL "IMPLEMENTED")
130-
target_compile_options("${target}" PRIVATE
130+
target_compile_options("${target_name}" PRIVATE
131131
"SHELL:-package-name ${package_name}"
132132
"SHELL:-Xfrontend -package-cmo"
133133
"SHELL:-Xfrontend -allow-non-resilient-access"
134134
)
135135
elseif(Swift_COMPILER_PACKAGE_CMO_SUPPORT STREQUAL "EXPERIMENTAL")
136-
target_compile_options("${target}" PRIVATE
136+
target_compile_options("${target_name}" PRIVATE
137137
"SHELL:-package-name ${package_name}"
138138
"SHELL:-Xfrontend -experimental-package-cmo"
139139
"SHELL:-Xfrontend -experimental-allow-non-resilient-access"

0 commit comments

Comments
 (0)