diff options
author | Brad King <brad.king@kitware.com> | 2019-06-07 13:33:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-07 15:08:38 (GMT) |
commit | 6696855f72adebbb40d475c39dace1e9f855ca2a (patch) | |
tree | 582b2c76fc4ad59f49f8ac76551c0f1594330ab3 /Source/cmcmd.cxx | |
parent | 6b815e58baa037335fb0008f6d0345fa29931e08 (diff) | |
download | CMake-6696855f72adebbb40d475c39dace1e9f855ca2a.zip CMake-6696855f72adebbb40d475c39dace1e9f855ca2a.tar.gz CMake-6696855f72adebbb40d475c39dace1e9f855ca2a.tar.bz2 |
cmake: Simplify implementation of -E capabilities
The `cmake -E capabilities` command-line tool is implemented only in a
full-featured (non-bootstrap) CMake, and server mode is now always
available in this case.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index a983d30..86082e5 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -734,11 +734,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args) return 1; } cmake cm(cmake::RoleInternal, cmState::Unknown); -#if defined(CMAKE_BUILD_WITH_CMAKE) - std::cout << cm.ReportCapabilities(true); -#else - std::cout << cm.ReportCapabilities(false); -#endif + std::cout << cm.ReportCapabilities(); return 0; } |