1load_command 2------------ 3 4Disallowed since version 3.0. See CMake Policy :policy:`CMP0031`. 5 6Load a command into a running CMake. 7 8:: 9 10 load_command(COMMAND_NAME <loc1> [loc2 ...]) 11 12The given locations are searched for a library whose name is 13cmCOMMAND_NAME. If found, it is loaded as a module and the command is 14added to the set of available CMake commands. Usually, 15:command:`try_compile` is used before this command to compile the 16module. If the command is successfully loaded a variable named 17 18:: 19 20 CMAKE_LOADED_COMMAND_<COMMAND_NAME> 21 22will be set to the full path of the module that was loaded. Otherwise 23the variable will not be set. 24