From 907c09cd312e60d10f7af9342ad88e550af5e36c Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 17 Feb 2014 11:08:58 +0100 Subject: [PATCH] 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. --- Source/cmTargetIncludeDirectoriesCommand.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmTargetIncludeDirectoriesCommand.cxx b/Source/cmTargetIncludeDirectoriesCommand.cxx index 913bdaba2..f8e1188a7 100644 --- a/Source/cmTargetIncludeDirectoriesCommand.cxx +++ b/Source/cmTargetIncludeDirectoriesCommand.cxx @@ -11,6 +11,8 @@ ============================================================================*/ #include "cmTargetIncludeDirectoriesCommand.h" +#include "cmGeneratorExpression.h" + //---------------------------------------------------------------------------- bool cmTargetIncludeDirectoriesCommand ::InitialPass(std::vector const& args, cmExecutionStatus &)