summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetIncludeDirectoriesCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-17 10:08:58 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-02-17 10:08:58 (GMT)
commit907c09cd312e60d10f7af9342ad88e550af5e36c (patch)
treefe593b0786aed20fa73fe540a67db59323c1c3e0 /Source/cmTargetIncludeDirectoriesCommand.cxx
parenta74d125a7c67b7e4de9bd707b8c2a6d669a34fec (diff)
downloadCMake-907c09cd312e60d10f7af9342ad88e550af5e36c.zip
CMake-907c09cd312e60d10f7af9342ad88e550af5e36c.tar.gz
CMake-907c09cd312e60d10f7af9342ad88e550af5e36c.tar.bz2
include_directory: Add missing include.
The cmGeneratorExpression is used here, but the header for it is not in the include heirarchy. This would be a compile error if the file were compiled as a standalone translation unit, but it is instead used in a mini-unity-build by inclusion in cmCommands.cxx. The header for cmGeneratorExpression happens to be included first, so the compilation works fine. IDEs do not know this however, and flag the use as an error.
Diffstat (limited to 'Source/cmTargetIncludeDirectoriesCommand.cxx')
-rw-r--r--Source/cmTargetIncludeDirectoriesCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTargetIncludeDirectoriesCommand.cxx b/Source/cmTargetIncludeDirectoriesCommand.cxx
index 913bdab..f8e1188 100644
--- a/Source/cmTargetIncludeDirectoriesCommand.cxx
+++ b/Source/cmTargetIncludeDirectoriesCommand.cxx
@@ -11,6 +11,8 @@
============================================================================*/
#include "cmTargetIncludeDirectoriesCommand.h"
+#include "cmGeneratorExpression.h"
+
//----------------------------------------------------------------------------
bool cmTargetIncludeDirectoriesCommand
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)