File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
tools/SourceKit/cmake/modules Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -213,21 +213,16 @@ endmacro()
213
213
# add_sourcekit_executable(name # Name of the executable
214
214
# [LLVM_LINK_COMPONENTS comp1 ...] # LLVM components this executable
215
215
# # depends on
216
- # [EXCLUDE_FROM_ALL] # Whether to exclude this executable from
217
- # # the ALL_BUILD target
218
216
# source1 [source2 source3 ...]) # Sources to add into this executable
219
217
macro (add_sourcekit_executable name )
220
- cmake_parse_arguments (SOURCEKITEXE
221
- "EXCLUDE_FROM_ALL"
222
- ""
223
- "LLVM_LINK_COMPONENTS"
224
- ${ARGN} )
225
-
226
- if (${SOURCEKITEXE_EXCLUDE_FROM_ALL} )
227
- add_executable (${name} EXCLUDE_FROM_ALL ${SOURCEKITEXE_UNPARSED_ARGUMENTS} )
228
- else ()
229
- add_executable (${name} ${SOURCEKITEXE_UNPARSED_ARGUMENTS} )
230
- endif ()
218
+ set (SOURCEKIT_EXECUTABLE_options )
219
+ set (SOURCEKIT_EXECUTABLE_single_parameter_options )
220
+ set (SOURCEKIT_EXECUTABLE_multiple_parameter_options LLVM_LINK_COMPONENTS )
221
+ cmake_parse_arguments (SOURCEKITEXE "${SOURCEKIT_EXECUTABLE_options} "
222
+ "${SOURCEKIT_EXECUTABLE_single_parameter_options} "
223
+ "${SOURCEKIT_EXECUTABLE_multiple_parameter_options} " ${ARGN} )
224
+
225
+ add_executable (${name} ${SOURCEKITEXE_UNPARSED_ARGUMENTS} )
231
226
if (NOT SWIFT_BUILT_STANDALONE AND NOT CMAKE_C_COMPILER_ID MATCHES Clang )
232
227
add_dependencies (${name} clang )
233
228
endif ()
You can’t perform that action at this time.
0 commit comments