diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-06-15 05:38:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-19 12:46:37 (GMT) |
commit | bb71a3a0dfaba317c7a98b92301310e15f602c38 (patch) | |
tree | 0ae6f7bd8a4dfe223333aeda53ecdb49e5e3dc10 /Source/cmCommands.cxx | |
parent | dea8271840b69bef078d7af324a72636ff195c94 (diff) | |
download | CMake-bb71a3a0dfaba317c7a98b92301310e15f602c38.zip CMake-bb71a3a0dfaba317c7a98b92301310e15f602c38.tar.gz CMake-bb71a3a0dfaba317c7a98b92301310e15f602c38.tar.bz2 |
Add cmake_host_system_information command
Expose the internal system information API to the CMake language. For
example, it is useful to see how much memory the system has available to
estimate an upper limit of tests that can run in parallel.
Diffstat (limited to 'Source/cmCommands.cxx')
-rw-r--r-- | Source/cmCommands.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index 3cfbf43..1e2a85c 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -14,6 +14,7 @@ #include "cmAddCompileOptionsCommand.cxx" #include "cmAuxSourceDirectoryCommand.cxx" #include "cmBuildNameCommand.cxx" +#include "cmCMakeHostSystemInformationCommand.cxx" #include "cmElseIfCommand.cxx" #include "cmExportCommand.cxx" #include "cmExportLibraryDependencies.cxx" @@ -56,6 +57,7 @@ void GetPredefinedCommands(std::list<cmCommand*>& commands.push_back(new cmAddCompileOptionsCommand); commands.push_back(new cmAuxSourceDirectoryCommand); commands.push_back(new cmBuildNameCommand); + commands.push_back(new cmCMakeHostSystemInformationCommand); commands.push_back(new cmElseIfCommand); commands.push_back(new cmExportCommand); commands.push_back(new cmExportLibraryDependenciesCommand); |