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.
This commit is contained in:
Stephen Kelly 2014-02-17 11:08:58 +01:00
parent a74d125a7c
commit 907c09cd31
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,8 @@
============================================================================*/ ============================================================================*/
#include "cmTargetIncludeDirectoriesCommand.h" #include "cmTargetIncludeDirectoriesCommand.h"
#include "cmGeneratorExpression.h"
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
bool cmTargetIncludeDirectoriesCommand bool cmTargetIncludeDirectoriesCommand
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)