diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-03 20:20:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-03 20:20:20 (GMT) |
commit | 2fcae1932c4921868056ee404d448adec563dd6e (patch) | |
tree | 17c9ef35baf5089c0937cd461d4681f127f8d9c6 /Source/cmIncludeDirectoryCommand.cxx | |
parent | c98d15e8a3bc0ff8a4dcbe20ab3dfd12ed263504 (diff) | |
download | CMake-2fcae1932c4921868056ee404d448adec563dd6e.zip CMake-2fcae1932c4921868056ee404d448adec563dd6e.tar.gz CMake-2fcae1932c4921868056ee404d448adec563dd6e.tar.bz2 |
ENH: make sure include and lib dirs are unix paths
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.cxx')
-rw-r--r-- | Source/cmIncludeDirectoryCommand.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx index 3bc7787..eb21288 100644 --- a/Source/cmIncludeDirectoryCommand.cxx +++ b/Source/cmIncludeDirectoryCommand.cxx @@ -39,7 +39,9 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args { cmSystemTools::Error("Empty Include Directory Passed into INCLUDE_DIRECTORIES command."); } - this->Makefile->AddIncludeDirectory((*i).c_str(), before); + std::string unixPath = *i; + cmSystemTools::ConvertToUnixSlashes(unixPath); + this->Makefile->AddIncludeDirectory(unixPath.c_str(), before); } return true; } |