diff options
author | Charles Barto <chbarto@microsoft.com> | 2019-11-13 01:17:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-19 19:39:00 (GMT) |
commit | 5e9ecaae0e191aba8b02243cb94a68983d6ce3f0 (patch) | |
tree | fcc019812b0735542892afe2ae611375f056c893 /Source/cmCommands.cxx | |
parent | 7e62ffc028cbaea17d5dc19d5dd4c2f5fcbfa137 (diff) | |
download | CMake-5e9ecaae0e191aba8b02243cb94a68983d6ce3f0.zip CMake-5e9ecaae0e191aba8b02243cb94a68983d6ce3f0.tar.gz CMake-5e9ecaae0e191aba8b02243cb94a68983d6ce3f0.tar.bz2 |
load_cache: Allow READ_WITH_PREFIX mode in cmake scripts
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r-- | Source/cmCommands.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index ff73b27..563e0f1 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -198,6 +198,7 @@ void GetScriptingCommands(cmState* state) #if !defined(CMAKE_BOOTSTRAP) state->AddBuiltinCommand("cmake_host_system_information", cmCMakeHostSystemInformationCommand); + state->AddBuiltinCommand("load_cache", cmLoadCacheCommand); state->AddBuiltinCommand("remove", cmRemoveCommand); state->AddBuiltinCommand("variable_watch", cmVariableWatchCommand); state->AddBuiltinCommand("write_file", cmWriteFileCommand); @@ -279,7 +280,6 @@ void GetProjectCommands(cmState* state) state->AddBuiltinCommand("target_link_options", cmTargetLinkOptionsCommand); state->AddBuiltinCommand("target_link_directories", cmTargetLinkDirectoriesCommand); - state->AddBuiltinCommand("load_cache", cmLoadCacheCommand); state->AddBuiltinCommand("qt_wrap_cpp", cmQTWrapCPPCommand); state->AddBuiltinCommand("qt_wrap_ui", cmQTWrapUICommand); state->AddBuiltinCommand("remove_definitions", cmRemoveDefinitionsCommand); @@ -339,7 +339,6 @@ void GetProjectCommandsInScriptMode(cmState* state) CM_UNEXPECTED_PROJECT_COMMAND("install"); CM_UNEXPECTED_PROJECT_COMMAND("link_directories"); CM_UNEXPECTED_PROJECT_COMMAND("link_libraries"); - CM_UNEXPECTED_PROJECT_COMMAND("load_cache"); CM_UNEXPECTED_PROJECT_COMMAND("project"); CM_UNEXPECTED_PROJECT_COMMAND("qt_wrap_cpp"); CM_UNEXPECTED_PROJECT_COMMAND("qt_wrap_ui"); |