summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-03 12:10:18 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-09-03 12:10:18 (GMT)
commitbfdf1322e7638687c96b323b1df20fd9c08b3044 (patch)
treec216079eb479d30f8dacd119dbdc5f487966b44e /Source/cmake.cxx
parent4da61391eec301ab564ac8e3e5ee9dc7ffd4f8de (diff)
parentefed6468eda950644014ccfada85300710e05009 (diff)
downloadCMake-bfdf1322e7638687c96b323b1df20fd9c08b3044.zip
CMake-bfdf1322e7638687c96b323b1df20fd9c08b3044.tar.gz
CMake-bfdf1322e7638687c96b323b1df20fd9c08b3044.tar.bz2
Merge topic 'include-what-you-use'
efed6468 fix a load of include-what-you-use violations bd3d0eaf cmCTest: don't redefine cout and cerr 3838a0d5 make sure to include cmConfigure.h before cmStandardIncludes.h 54140848 Tests/CMakeLib: include what you use 3f9c4cdf Tests/CMakeLib: use cmsys::ifstream
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 {