summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-08 16:56:00 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-08 16:56:00 (GMT)
commit8632251b25c217e12ae8741e935d6b9aa03ac04b (patch)
treec8dbd2b0fb0d39decea7106af8970c05eec79f59 /Source
parent5572f5fffd040473c588215a7c87a12530e1548e (diff)
parent188baef00c3b19c6ee6ed8c3735817bae50f110e (diff)
downloadCMake-8632251b25c217e12ae8741e935d6b9aa03ac04b.zip
CMake-8632251b25c217e12ae8741e935d6b9aa03ac04b.tar.gz
CMake-8632251b25c217e12ae8741e935d6b9aa03ac04b.tar.bz2
Merge topic 'find_path-in-framework'
188baef0 find_path: Fix location of <dir/header.h> in a framework on OS X
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFindPathCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index d24be6a..d71fc1a 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -117,7 +117,7 @@ std::string cmFindPathCommand::FindHeaderInFramework(std::string const& file,
if (this->IncludeFileInPath) {
return fheader;
}
- fheader = cmSystemTools::GetFilenamePath(fheader);
+ fheader.resize(fheader.size() - file.size());
return fheader;
}
return "";