diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx index 9adcec58d..deb10983a 100644 --- a/Source/cmIncludeCommand.cxx +++ b/Source/cmIncludeCommand.cxx @@ -35,7 +35,7 @@ bool cmIncludeCommand::InitialPass(std::vector 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;