/src/CMake/Source/cmCommands.cxx
Line | Count | Source |
1 | | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 | | file LICENSE.rst or https://cmake.org/licensing for details. */ |
3 | | |
4 | | #include "cmCommands.h" |
5 | | |
6 | | #include <string> |
7 | | |
8 | | #include "cmAddCompileDefinitionsCommand.h" |
9 | | #include "cmAddCustomCommandCommand.h" |
10 | | #include "cmAddCustomTargetCommand.h" |
11 | | #include "cmAddDefinitionsCommand.h" |
12 | | #include "cmAddDependenciesCommand.h" |
13 | | #include "cmAddExecutableCommand.h" |
14 | | #include "cmAddLibraryCommand.h" |
15 | | #include "cmAddSubDirectoryCommand.h" |
16 | | #include "cmAddTestCommand.h" |
17 | | #include "cmBlockCommand.h" |
18 | | #include "cmBreakCommand.h" |
19 | | #include "cmBuildCommand.h" |
20 | | #include "cmCMakeLanguageCommand.h" |
21 | | #include "cmCMakeMinimumRequired.h" |
22 | | #include "cmCMakePathCommand.h" |
23 | | #include "cmCMakePolicyCommand.h" |
24 | | #include "cmConfigureFileCommand.h" |
25 | | #include "cmContinueCommand.h" |
26 | | #include "cmCreateTestSourceList.h" |
27 | | #include "cmDefinePropertyCommand.h" |
28 | | #include "cmEnableLanguageCommand.h" |
29 | | #include "cmEnableTestingCommand.h" |
30 | | #include "cmExecProgramCommand.h" |
31 | | #include "cmExecuteProcessCommand.h" |
32 | | #include "cmFileCommand.h" |
33 | | #include "cmFindFileCommand.h" |
34 | | #include "cmFindLibraryCommand.h" |
35 | | #include "cmFindPackageCommand.h" |
36 | | #include "cmFindPathCommand.h" |
37 | | #include "cmFindProgramCommand.h" |
38 | | #include "cmForEachCommand.h" |
39 | | #include "cmFunctionCommand.h" |
40 | | #include "cmGetCMakePropertyCommand.h" |
41 | | #include "cmGetDirectoryPropertyCommand.h" |
42 | | #include "cmGetFilenameComponentCommand.h" |
43 | | #include "cmGetPropertyCommand.h" |
44 | | #include "cmGetSourceFilePropertyCommand.h" |
45 | | #include "cmGetTargetPropertyCommand.h" |
46 | | #include "cmGetTestPropertyCommand.h" |
47 | | #include "cmIfCommand.h" |
48 | | #include "cmIncludeCommand.h" |
49 | | #include "cmIncludeDirectoryCommand.h" |
50 | | #include "cmIncludeGuardCommand.h" |
51 | | #include "cmIncludeRegularExpressionCommand.h" |
52 | | #include "cmInstallCommand.h" |
53 | | #include "cmInstallFilesCommand.h" |
54 | | #include "cmInstallTargetsCommand.h" |
55 | | #include "cmInstrumentationCommand.h" |
56 | | #include "cmLinkDirectoriesCommand.h" |
57 | | #include "cmListCommand.h" |
58 | | #include "cmMacroCommand.h" |
59 | | #include "cmMakeDirectoryCommand.h" |
60 | | #include "cmMarkAsAdvancedCommand.h" |
61 | | #include "cmMathCommand.h" |
62 | | #include "cmMessageCommand.h" |
63 | | #include "cmOptionCommand.h" |
64 | | #include "cmParseArgumentsCommand.h" |
65 | | #include "cmPolicies.h" |
66 | | #include "cmProjectCommand.h" |
67 | | #include "cmReturnCommand.h" |
68 | | #include "cmSeparateArgumentsCommand.h" |
69 | | #include "cmSetCommand.h" |
70 | | #include "cmSetDirectoryPropertiesCommand.h" |
71 | | #include "cmSetPropertyCommand.h" |
72 | | #include "cmSetSourceFilesPropertiesCommand.h" |
73 | | #include "cmSetTargetPropertiesCommand.h" |
74 | | #include "cmSetTestsPropertiesCommand.h" |
75 | | #include "cmSiteNameCommand.h" |
76 | | #include "cmState.h" |
77 | | #include "cmStringCommand.h" |
78 | | #include "cmSubdirCommand.h" |
79 | | #include "cmTargetCompileDefinitionsCommand.h" |
80 | | #include "cmTargetCompileFeaturesCommand.h" |
81 | | #include "cmTargetCompileOptionsCommand.h" |
82 | | #include "cmTargetIncludeDirectoriesCommand.h" |
83 | | #include "cmTargetLinkLibrariesCommand.h" |
84 | | #include "cmTargetLinkOptionsCommand.h" |
85 | | #include "cmTargetPrecompileHeadersCommand.h" |
86 | | #include "cmTargetSourcesCommand.h" |
87 | | #include "cmTryCompileCommand.h" |
88 | | #include "cmTryRunCommand.h" |
89 | | #include "cmUnsetCommand.h" |
90 | | #include "cmWhileCommand.h" |
91 | | |
92 | | #if !defined(CMAKE_BOOTSTRAP) |
93 | | # include "cmAddCompileOptionsCommand.h" |
94 | | # include "cmAddLinkOptionsCommand.h" |
95 | | # include "cmAuxSourceDirectoryCommand.h" |
96 | | # include "cmCMakeHostSystemInformationCommand.h" |
97 | | # include "cmCMakePkgConfigCommand.h" |
98 | | # include "cmExportCommand.h" |
99 | | # include "cmFLTKWrapUICommand.h" |
100 | | # include "cmFileAPICommand.h" |
101 | | # include "cmIncludeExternalMSProjectCommand.h" |
102 | | # include "cmInstallProgramsCommand.h" |
103 | | # include "cmLinkLibrariesCommand.h" |
104 | | # include "cmLoadCacheCommand.h" |
105 | | # include "cmQTWrapCPPCommand.h" |
106 | | # include "cmQTWrapUICommand.h" |
107 | | # include "cmRemoveCommand.h" |
108 | | # include "cmRemoveDefinitionsCommand.h" |
109 | | # include "cmSourceGroupCommand.h" |
110 | | # include "cmTargetLinkDirectoriesCommand.h" |
111 | | # include "cmVariableWatchCommand.h" |
112 | | # include "cmWriteFileCommand.h" |
113 | | #endif |
114 | | |
115 | | void GetScriptingCommands(cmState* state) |
116 | 35 | { |
117 | 35 | state->AddFlowControlCommand("break", cmBreakCommand); |
118 | 35 | state->AddFlowControlCommand("continue", cmContinueCommand); |
119 | 35 | state->AddFlowControlCommand("foreach", cmForEachCommand); |
120 | 35 | state->AddFlowControlCommand("function", cmFunctionCommand); |
121 | 35 | state->AddFlowControlCommand("if", cmIfCommand); |
122 | 35 | state->AddFlowControlCommand("macro", cmMacroCommand); |
123 | 35 | state->AddFlowControlCommand("return", cmReturnCommand); |
124 | 35 | state->AddFlowControlCommand("while", cmWhileCommand); |
125 | 35 | state->AddFlowControlCommand("block", cmBlockCommand); |
126 | | |
127 | 35 | state->AddBuiltinCommand("cmake_language", cmCMakeLanguageCommand); |
128 | 35 | state->AddBuiltinCommand("cmake_minimum_required", cmCMakeMinimumRequired); |
129 | 35 | state->AddBuiltinCommand("cmake_path", cmCMakePathCommand); |
130 | 35 | state->AddBuiltinCommand("cmake_policy", cmCMakePolicyCommand); |
131 | 35 | state->AddBuiltinCommand("configure_file", cmConfigureFileCommand); |
132 | 35 | state->AddBuiltinCommand("execute_process", cmExecuteProcessCommand); |
133 | 35 | state->AddBuiltinCommand("file", cmFileCommand); |
134 | 35 | state->AddBuiltinCommand("find_file", cmFindFile); |
135 | 35 | state->AddBuiltinCommand("find_library", cmFindLibrary); |
136 | 35 | state->AddBuiltinCommand("find_package", cmFindPackage); |
137 | 35 | state->AddBuiltinCommand("find_path", cmFindPath); |
138 | 35 | state->AddBuiltinCommand("find_program", cmFindProgram); |
139 | 35 | state->AddBuiltinCommand("get_cmake_property", cmGetCMakePropertyCommand); |
140 | 35 | state->AddBuiltinCommand("get_directory_property", |
141 | 35 | cmGetDirectoryPropertyCommand); |
142 | 35 | state->AddBuiltinCommand("get_filename_component", |
143 | 35 | cmGetFilenameComponentCommand); |
144 | 35 | state->AddBuiltinCommand("get_property", cmGetPropertyCommand); |
145 | 35 | state->AddBuiltinCommand("include", cmIncludeCommand); |
146 | 35 | state->AddBuiltinCommand("include_guard", cmIncludeGuardCommand); |
147 | 35 | state->AddBuiltinCommand("list", cmListCommand); |
148 | 35 | state->AddBuiltinCommand("make_directory", cmMakeDirectoryCommand); |
149 | 35 | state->AddBuiltinCommand("mark_as_advanced", cmMarkAsAdvancedCommand); |
150 | 35 | state->AddBuiltinCommand("math", cmMathCommand); |
151 | 35 | state->AddBuiltinCommand("message", cmMessageCommand); |
152 | 35 | state->AddBuiltinCommand("option", cmOptionCommand); |
153 | 35 | state->AddBuiltinCommand("cmake_parse_arguments", cmParseArgumentsCommand); |
154 | 35 | state->AddBuiltinCommand("separate_arguments", cmSeparateArgumentsCommand); |
155 | 35 | state->AddBuiltinCommand("set", cmSetCommand); |
156 | 35 | state->AddBuiltinCommand("set_directory_properties", |
157 | 35 | cmSetDirectoryPropertiesCommand); |
158 | 35 | state->AddBuiltinCommand("set_property", cmSetPropertyCommand); |
159 | 35 | state->AddBuiltinCommand("site_name", cmSiteNameCommand); |
160 | 35 | state->AddBuiltinCommand("string", cmStringCommand); |
161 | 35 | state->AddBuiltinCommand("unset", cmUnsetCommand); |
162 | | |
163 | 35 | state->AddUnexpectedFlowControlCommand( |
164 | 35 | "else", |
165 | 35 | "An ELSE command was found outside of a proper " |
166 | 35 | "IF ENDIF structure. Or its arguments did not match " |
167 | 35 | "the opening IF command."); |
168 | 35 | state->AddUnexpectedFlowControlCommand( |
169 | 35 | "elseif", |
170 | 35 | "An ELSEIF command was found outside of a proper " |
171 | 35 | "IF ENDIF structure."); |
172 | 35 | state->AddUnexpectedFlowControlCommand( |
173 | 35 | "endforeach", |
174 | 35 | "An ENDFOREACH command was found outside of a proper " |
175 | 35 | "FOREACH ENDFOREACH structure. Or its arguments did " |
176 | 35 | "not match the opening FOREACH command."); |
177 | 35 | state->AddUnexpectedFlowControlCommand( |
178 | 35 | "endfunction", |
179 | 35 | "An ENDFUNCTION command was found outside of a proper " |
180 | 35 | "FUNCTION ENDFUNCTION structure. Or its arguments did not " |
181 | 35 | "match the opening FUNCTION command."); |
182 | 35 | state->AddUnexpectedFlowControlCommand( |
183 | 35 | "endif", |
184 | 35 | "An ENDIF command was found outside of a proper " |
185 | 35 | "IF ENDIF structure. Or its arguments did not match " |
186 | 35 | "the opening IF command."); |
187 | 35 | state->AddUnexpectedFlowControlCommand( |
188 | 35 | "endmacro", |
189 | 35 | "An ENDMACRO command was found outside of a proper " |
190 | 35 | "MACRO ENDMACRO structure. Or its arguments did not " |
191 | 35 | "match the opening MACRO command."); |
192 | 35 | state->AddUnexpectedFlowControlCommand( |
193 | 35 | "endwhile", |
194 | 35 | "An ENDWHILE command was found outside of a proper " |
195 | 35 | "WHILE ENDWHILE structure. Or its arguments did not " |
196 | 35 | "match the opening WHILE command."); |
197 | 35 | state->AddUnexpectedFlowControlCommand( |
198 | 35 | "endblock", |
199 | 35 | "An ENDBLOCK command was found outside of a proper " |
200 | 35 | "BLOCK ENDBLOCK structure."); |
201 | | |
202 | 35 | #if !defined(CMAKE_BOOTSTRAP) |
203 | 35 | state->AddBuiltinCommand("cmake_host_system_information", |
204 | 35 | cmCMakeHostSystemInformationCommand); |
205 | 35 | state->AddBuiltinCommand("cmake_pkg_config", cmCMakePkgConfigCommand); |
206 | 35 | state->AddBuiltinCommand("load_cache", cmLoadCacheCommand); |
207 | 35 | state->AddBuiltinCommand("remove", cmRemoveCommand); |
208 | 35 | state->AddBuiltinCommand("variable_watch", cmVariableWatchCommand); |
209 | 35 | state->AddBuiltinCommand("write_file", cmWriteFileCommand); |
210 | | |
211 | 35 | state->AddRemovedCommand( |
212 | 35 | "build_name", "The build_name command has been removed; see CMP0036."); |
213 | 35 | state->AddRemovedCommand( |
214 | 35 | "use_mangled_mesa", |
215 | 35 | "The use_mangled_mesa command has been removed; see CMP0030."); |
216 | 35 | state->AddDisallowedCommand("exec_program", cmExecProgramCommand, |
217 | 35 | cmPolicies::CMP0153, |
218 | 35 | "The exec_program command should not be called; " |
219 | 35 | "see CMP0153. Use execute_process() instead.", |
220 | 35 | "Use execute_process() instead."); |
221 | | |
222 | 35 | #endif |
223 | 35 | } |
224 | | |
225 | | void GetProjectCommands(cmState* state) |
226 | 0 | { |
227 | 0 | state->AddBuiltinCommand("add_compile_definitions", |
228 | 0 | cmAddCompileDefinitionsCommand); |
229 | 0 | state->AddBuiltinCommand("add_custom_command", cmAddCustomCommandCommand); |
230 | 0 | state->AddBuiltinCommand("add_custom_target", cmAddCustomTargetCommand); |
231 | 0 | state->AddBuiltinCommand("add_definitions", cmAddDefinitionsCommand); |
232 | 0 | state->AddBuiltinCommand("add_dependencies", cmAddDependenciesCommand); |
233 | 0 | state->AddBuiltinCommand("add_executable", cmAddExecutableCommand); |
234 | 0 | state->AddBuiltinCommand("add_library", cmAddLibraryCommand); |
235 | 0 | state->AddBuiltinCommand("add_subdirectory", cmAddSubDirectoryCommand); |
236 | 0 | state->AddBuiltinCommand("add_test", cmAddTestCommand); |
237 | 0 | state->AddBuiltinCommand("build_command", cmBuildCommand); |
238 | 0 | state->AddBuiltinCommand("create_test_sourcelist", cmCreateTestSourceList); |
239 | 0 | state->AddBuiltinCommand("define_property", cmDefinePropertyCommand); |
240 | 0 | state->AddBuiltinCommand("enable_language", cmEnableLanguageCommand); |
241 | 0 | state->AddBuiltinCommand("enable_testing", cmEnableTestingCommand); |
242 | 0 | state->AddBuiltinCommand("get_source_file_property", |
243 | 0 | cmGetSourceFilePropertyCommand); |
244 | 0 | state->AddBuiltinCommand("get_target_property", cmGetTargetPropertyCommand); |
245 | 0 | state->AddBuiltinCommand("get_test_property", cmGetTestPropertyCommand); |
246 | 0 | state->AddBuiltinCommand("include_directories", cmIncludeDirectoryCommand); |
247 | 0 | state->AddBuiltinCommand("include_regular_expression", |
248 | 0 | cmIncludeRegularExpressionCommand); |
249 | 0 | state->AddBuiltinCommand("install", cmInstallCommand); |
250 | 0 | state->AddBuiltinCommand("install_files", cmInstallFilesCommand); |
251 | 0 | state->AddBuiltinCommand("install_targets", cmInstallTargetsCommand); |
252 | 0 | state->AddBuiltinCommand("link_directories", cmLinkDirectoriesCommand); |
253 | 0 | state->AddBuiltinCommand("project", cmProjectCommand); |
254 | 0 | state->AddBuiltinCommand("set_source_files_properties", |
255 | 0 | cmSetSourceFilesPropertiesCommand); |
256 | 0 | state->AddBuiltinCommand("set_target_properties", |
257 | 0 | cmSetTargetPropertiesCommand); |
258 | 0 | state->AddBuiltinCommand("set_tests_properties", |
259 | 0 | cmSetTestsPropertiesCommand); |
260 | 0 | state->AddBuiltinCommand("subdirs", cmSubdirCommand); |
261 | 0 | state->AddBuiltinCommand("target_compile_definitions", |
262 | 0 | cmTargetCompileDefinitionsCommand); |
263 | 0 | state->AddBuiltinCommand("target_compile_features", |
264 | 0 | cmTargetCompileFeaturesCommand); |
265 | 0 | state->AddBuiltinCommand("target_compile_options", |
266 | 0 | cmTargetCompileOptionsCommand); |
267 | 0 | state->AddBuiltinCommand("target_include_directories", |
268 | 0 | cmTargetIncludeDirectoriesCommand); |
269 | 0 | state->AddBuiltinCommand("target_link_libraries", |
270 | 0 | cmTargetLinkLibrariesCommand); |
271 | 0 | state->AddBuiltinCommand("target_link_options", cmTargetLinkOptionsCommand); |
272 | 0 | state->AddBuiltinCommand("target_sources", cmTargetSourcesCommand); |
273 | 0 | state->AddBuiltinCommand("try_compile", cmTryCompileCommand); |
274 | 0 | state->AddBuiltinCommand("try_run", cmTryRunCommand); |
275 | 0 | state->AddBuiltinCommand("target_precompile_headers", |
276 | 0 | cmTargetPrecompileHeadersCommand); |
277 | |
|
278 | 0 | #if !defined(CMAKE_BOOTSTRAP) |
279 | 0 | state->AddBuiltinCommand("add_compile_options", cmAddCompileOptionsCommand); |
280 | 0 | state->AddBuiltinCommand("aux_source_directory", |
281 | 0 | cmAuxSourceDirectoryCommand); |
282 | 0 | state->AddBuiltinCommand("export", cmExportCommand); |
283 | 0 | state->AddBuiltinCommand("fltk_wrap_ui", cmFLTKWrapUICommand); |
284 | 0 | state->AddBuiltinCommand("include_external_msproject", |
285 | 0 | cmIncludeExternalMSProjectCommand); |
286 | 0 | state->AddBuiltinCommand("install_programs", cmInstallProgramsCommand); |
287 | 0 | state->AddBuiltinCommand("add_link_options", cmAddLinkOptionsCommand); |
288 | 0 | state->AddBuiltinCommand("link_libraries", cmLinkLibrariesCommand); |
289 | 0 | state->AddBuiltinCommand("target_link_directories", |
290 | 0 | cmTargetLinkDirectoriesCommand); |
291 | 0 | state->AddBuiltinCommand("qt_wrap_cpp", cmQTWrapCPPCommand); |
292 | 0 | state->AddBuiltinCommand("qt_wrap_ui", cmQTWrapUICommand); |
293 | 0 | state->AddBuiltinCommand("remove_definitions", cmRemoveDefinitionsCommand); |
294 | 0 | state->AddBuiltinCommand("source_group", cmSourceGroupCommand); |
295 | 0 | state->AddBuiltinCommand("cmake_file_api", cmFileAPICommand); |
296 | 0 | state->AddBuiltinCommand("cmake_instrumentation", cmInstrumentationCommand); |
297 | |
|
298 | 0 | state->AddRemovedCommand( |
299 | 0 | "export_library_dependencies", |
300 | 0 | "The export_library_dependencies command has been removed; see CMP0033."); |
301 | 0 | state->AddRemovedCommand( |
302 | 0 | "load_command", "The load_command command has been removed; see CMP0031."); |
303 | 0 | state->AddRemovedCommand( |
304 | 0 | "output_required_files", |
305 | 0 | "The output_required_files command has been removed; see CMP0032."); |
306 | 0 | state->AddRemovedCommand( |
307 | 0 | "subdir_depends", |
308 | 0 | "The subdir_depends command has been removed; see CMP0029."); |
309 | 0 | state->AddRemovedCommand( |
310 | 0 | "utility_source", |
311 | 0 | "The utility_source command has been removed; see CMP0034."); |
312 | 0 | state->AddRemovedCommand( |
313 | 0 | "variable_requires", |
314 | 0 | "The variable_requires command has been removed; see CMP0035."); |
315 | 0 | #endif |
316 | 0 | } |
317 | | |
318 | | void GetProjectCommandsInScriptMode(cmState* state) |
319 | 1 | { |
320 | 1 | #define CM_UNEXPECTED_PROJECT_COMMAND(NAME) \ |
321 | 49 | state->AddUnexpectedCommand(NAME, "command is not scriptable") |
322 | | |
323 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_compile_options"); |
324 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_custom_command"); |
325 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_custom_target"); |
326 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_definitions"); |
327 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_dependencies"); |
328 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_executable"); |
329 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_library"); |
330 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_subdirectory"); |
331 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("add_test"); |
332 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("aux_source_directory"); |
333 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("build_command"); |
334 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("cmake_file_api"); |
335 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("create_test_sourcelist"); |
336 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("define_property"); |
337 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("enable_language"); |
338 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("enable_testing"); |
339 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("export"); |
340 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("fltk_wrap_ui"); |
341 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("get_source_file_property"); |
342 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("get_target_property"); |
343 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("get_test_property"); |
344 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("include_directories"); |
345 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("include_external_msproject"); |
346 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("include_regular_expression"); |
347 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("install"); |
348 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("link_directories"); |
349 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("link_libraries"); |
350 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("project"); |
351 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("qt_wrap_cpp"); |
352 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("qt_wrap_ui"); |
353 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("remove_definitions"); |
354 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("set_source_files_properties"); |
355 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("set_target_properties"); |
356 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("set_tests_properties"); |
357 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("source_group"); |
358 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("target_compile_definitions"); |
359 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("target_compile_features"); |
360 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("target_compile_options"); |
361 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("target_include_directories"); |
362 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("target_link_libraries"); |
363 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("target_sources"); |
364 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("try_compile"); |
365 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("try_run"); |
366 | | |
367 | | // deprecated commands |
368 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("export_library_dependencies"); |
369 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("load_command"); |
370 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("output_required_files"); |
371 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("subdir_depends"); |
372 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("utility_source"); |
373 | 1 | CM_UNEXPECTED_PROJECT_COMMAND("variable_requires"); |
374 | | |
375 | 1 | #undef CM_UNEXPECTED_PROJECT_COMMAND |
376 | 1 | } |