diff options
author | Brad King <brad.king@kitware.com> | 2006-05-12 14:54:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-05-12 14:54:09 (GMT) |
commit | 21089bf93f877b697874b0858d18915b2d695e20 (patch) | |
tree | 1c46505f521f847df658087338f795caaceed1f5 /Source/cmIncludeDirectoryCommand.cxx | |
parent | 01c25dd37815e6316a72c249e190e7891f95d2fa (diff) | |
download | CMake-21089bf93f877b697874b0858d18915b2d695e20.zip CMake-21089bf93f877b697874b0858d18915b2d695e20.tar.gz CMake-21089bf93f877b697874b0858d18915b2d695e20.tar.bz2 |
BUG: INCLUDE_DIRECTORIES should interpret relative path arguments with respect to the current source directory.
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.cxx')
-rw-r--r-- | Source/cmIncludeDirectoryCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx index 9dc2a25..b493eb3 100644 --- a/Source/cmIncludeDirectoryCommand.cxx +++ b/Source/cmIncludeDirectoryCommand.cxx @@ -49,6 +49,13 @@ bool cmIncludeDirectoryCommand } std::string unixPath = *i; cmSystemTools::ConvertToUnixSlashes(unixPath); + if(!cmSystemTools::FileIsFullPath(unixPath.c_str())) + { + std::string tmp = this->Makefile->GetStartDirectory(); + tmp += "/"; + tmp += unixPath; + unixPath = tmp; + } this->Makefile->AddIncludeDirectory(unixPath.c_str(), before); } return true; |