File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ function(_set_pure_swift_package_options target_name package_name)
127
127
128
128
# Enable package CMO if possible
129
129
if (Swift_COMPILER_PACKAGE_CMO_SUPPORT STREQUAL "IMPLEMENTED" )
130
- target_compile_options ("${target } " PRIVATE
130
+ target_compile_options ("${target_name } " PRIVATE
131
131
"SHELL:-package-name ${package_name} "
132
132
"SHELL:-Xfrontend -package-cmo"
133
133
"SHELL:-Xfrontend -allow-non-resilient-access"
134
134
)
135
135
elseif (Swift_COMPILER_PACKAGE_CMO_SUPPORT STREQUAL "EXPERIMENTAL" )
136
- target_compile_options ("${target } " PRIVATE
136
+ target_compile_options ("${target_name } " PRIVATE
137
137
"SHELL:-package-name ${package_name} "
138
138
"SHELL:-Xfrontend -experimental-package-cmo"
139
139
"SHELL:-Xfrontend -experimental-allow-non-resilient-access"
You can’t perform that action at this time.
0 commit comments