summaryrefslogtreecommitdiffstats
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmFindFileCommand.cxx')
-rw-r--r--Source/cmFindFileCommand.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index d83cc7b..465d554 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -113,9 +113,10 @@ cmStdString cmFindFileCommand::FindHeaderInFrameworks(
const char* defineVar,
const char* file)
{
+ (void)defineVar;
+
#ifndef __APPLE__
(void)path;
- (void)defineVar;
(void)file;
return cmStdString("");
#else
@@ -150,11 +151,11 @@ cmStdString cmFindFileCommand::FindHeaderInFrameworks(
fpath += "/";
fpath += frameWorkName;
fpath += ".framework";
- std::string path = fpath;
- path += "/Headers/";
- path += fileName;
- std::cerr << "try " << path << "\n";
- if(cmSystemTools::FileExists(path.c_str()))
+ std::string intPath = fpath;
+ intPath += "/Headers/";
+ intPath += fileName;
+ std::cerr << "try " << intPath << "\n";
+ if(cmSystemTools::FileExists(intPath.c_str()))
{
return fpath;
}