summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-01 18:59:28 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-03 12:04:56 (GMT)
commitefed6468eda950644014ccfada85300710e05009 (patch)
tree34373674a96941d95ee8443e34936ff66da8f56a /Source/cmake.cxx
parentbd3d0eafbb362fbc0f140c228da85791a473e44e (diff)
downloadCMake-efed6468eda950644014ccfada85300710e05009.zip
CMake-efed6468eda950644014ccfada85300710e05009.tar.gz
CMake-efed6468eda950644014ccfada85300710e05009.tar.bz2
fix a load of include-what-you-use violations
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx41
1 files changed, 26 insertions, 15 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 701a5e5..25f9e3a 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -12,33 +12,33 @@
#include "cmake.h"
#include "cmAlgorithms.h"
-#include "cmCommand.h"
#include "cmCommands.h"
+#include "cmDocumentation.h"
+#include "cmDocumentationEntry.h"
#include "cmDocumentationFormatter.h"
#include "cmExternalMakefileProjectGenerator.h"
#include "cmFileTimeComparison.h"
+#include "cmGeneratorTarget.h"
+#include "cmGlobalGenerator.h"
+#include "cmGlobalGeneratorFactory.h"
#include "cmLocalGenerator.h"
#include "cmMakefile.h"
#include "cmMessenger.h"
-#include "cmSourceFile.h"
#include "cmState.h"
-#include "cmTest.h"
+#include "cmSystemTools.h"
+#include "cmTarget.h"
+#include "cmTargetLinkLibraryType.h"
#include "cmUtils.hxx"
-#include "cmVersionMacros.h"
+#include "cmVersionConfig.h"
+#include "cm_auto_ptr.hxx"
#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmGraphVizWriter.h"
#include "cmVariableWatch.h"
-#include <cmsys/SystemInformation.hxx>
-
-#include "cm_jsoncpp_value.h"
-#include "cm_jsoncpp_writer.h"
+#include <cm_jsoncpp_value.h>
+#include <cm_jsoncpp_writer.h>
#endif
-#include <cmsys/FStream.hxx>
-#include <cmsys/Glob.hxx>
-#include <cmsys/RegularExpression.hxx>
-
// only build kdevelop generator on non-windows platforms
// when not bootstrapping cmake
#if !defined(_WIN32)
@@ -69,6 +69,7 @@
#include "cmGlobalVisualStudio71Generator.h"
#include "cmGlobalVisualStudio8Generator.h"
#include "cmGlobalVisualStudio9Generator.h"
+
#define CMAKE_HAVE_VS_GENERATORS
#endif
#include "cmGlobalMSYSMakefileGenerator.h"
@@ -98,11 +99,10 @@
#include "cmExtraEclipseCDT4Generator.h"
#endif
-#include <stdlib.h> // required for atoi
-
#if defined(__APPLE__)
#if defined(CMAKE_BUILD_WITH_CMAKE)
#include "cmGlobalXCodeGenerator.h"
+
#define CMAKE_USE_XCODE 1
#endif
#include <sys/resource.h>
@@ -113,7 +113,18 @@
// include sys/stat.h after sys/types.h
#include <sys/stat.h> // struct stat
-#include <list>
+#include <algorithm>
+#include <cmsys/FStream.hxx>
+#include <cmsys/Glob.hxx>
+#include <cmsys/RegularExpression.hxx>
+#include <iostream>
+#include <sstream>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <utility>
+
+class cmCommand;
namespace {