summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmIncludeCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx
index 9adcec5..deb1098 100644
--- a/Source/cmIncludeCommand.cxx
+++ b/Source/cmIncludeCommand.cxx
@@ -35,7 +35,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args)
optional = args[1] == "OPTIONAL";
}
- if(fname.find("/") == fname.npos)
+ if(!cmSystemTools::FileIsFullPath(fname.c_str()))
{
// Not a path. Maybe module.
std::string module = fname;