diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-07-24 20:59:28 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2023-07-25 15:09:56 (GMT) |
commit | ff12a57d5e459fac4cf2b11f90a681bc165c4a42 (patch) | |
tree | 51667de8b7d56a7e7477bc7a738d963a30a38310 /Source/cmCommands.cxx | |
parent | 89a692aa18d0d1f80c131fdc3eba34fea195f00a (diff) | |
download | CMake-ff12a57d5e459fac4cf2b11f90a681bc165c4a42.zip CMake-ff12a57d5e459fac4cf2b11f90a681bc165c4a42.tar.gz CMake-ff12a57d5e459fac4cf2b11f90a681bc165c4a42.tar.bz2 |
exec_program(): Remove by policy CMP0153
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r-- | Source/cmCommands.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index ae83b2e..2ee4f47 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -135,7 +135,6 @@ void GetScriptingCommands(cmState* state) state->AddBuiltinCommand("cmake_path", cmCMakePathCommand); state->AddBuiltinCommand("cmake_policy", cmCMakePolicyCommand); state->AddBuiltinCommand("configure_file", cmConfigureFileCommand); - state->AddBuiltinCommand("exec_program", cmExecProgramCommand); state->AddBuiltinCommand("execute_process", cmExecuteProcessCommand); state->AddBuiltinCommand("file", cmFileCommand); state->AddBuiltinCommand("find_file", cmFindFile); @@ -220,6 +219,9 @@ void GetScriptingCommands(cmState* state) state->AddDisallowedCommand( "use_mangled_mesa", cmUseMangledMesaCommand, cmPolicies::CMP0030, "The use_mangled_mesa command should not be called; see CMP0030."); + state->AddDisallowedCommand( + "exec_program", cmExecProgramCommand, cmPolicies::CMP0153, + "The exec_program command should not be called; see CMP0153."); #endif } |