summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-05 14:25:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-12-05 14:25:34 (GMT)
commit998d7c8f4af27346aab11dfc89a9432d277de676 (patch)
tree3c7fab6b39ce28506b916947300c657782ef3d5f
parent520ead7200334fddcbef94c657de025abe5cf134 (diff)
parent259bf0918cfbfbbeaf9078001c0b1010066666a1 (diff)
downloadCMake-998d7c8f4af27346aab11dfc89a9432d277de676.zip
CMake-998d7c8f4af27346aab11dfc89a9432d277de676.tar.gz
CMake-998d7c8f4af27346aab11dfc89a9432d277de676.tar.bz2
Merge topic 'minor-cleanups'
259bf09 Make the cmStrictTargetComparison operate on const cmTarget*. 8cc3cdb Help: Fix up the VISIBILITY_INLINES_HIDDEN docs. 1396ab8 Don't generate self-references for system include directories.
-rw-r--r--Help/prop_tgt/VISIBILITY_INLINES_HIDDEN.rst10
-rw-r--r--Source/cmGeneratorTarget.cxx3
-rw-r--r--Source/cmGeneratorTarget.h2
-rw-r--r--Source/cmTarget.cxx2
4 files changed, 9 insertions, 8 deletions
diff --git a/Help/prop_tgt/VISIBILITY_INLINES_HIDDEN.rst b/Help/prop_tgt/VISIBILITY_INLINES_HIDDEN.rst
index 3754410..e06d35c 100644
--- a/Help/prop_tgt/VISIBILITY_INLINES_HIDDEN.rst
+++ b/Help/prop_tgt/VISIBILITY_INLINES_HIDDEN.rst
@@ -4,8 +4,8 @@ VISIBILITY_INLINES_HIDDEN
Whether to add a compile flag to hide symbols of inline functions
The VISIBILITY_INLINES_HIDDEN property determines whether a flag for
-hiding symbols for inline functions. the value passed used in a
-visibility related compile option, such as -fvisibility=. This
-property only has an affect for libraries and executables with
-exports. This property is initialized by the value of the variable
-CMAKE_VISIBILITY_INLINES_HIDDEN if it is set when a target is created.
+hiding symbols for inline functions, such as -fvisibility-inlines-hidden,
+should be used when invoking the compiler. This property only has an affect
+for libraries and executables with exports. This property is initialized by
+the value of the :variable:`CMAKE_VISIBILITY_INLINES_HIDDEN` if it is set
+when a target is created.
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 5a535c7..fdd4e6d 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -693,7 +693,8 @@ void cmGeneratorTarget::GenerateTargetManifest(const char* config) const
}
}
-bool cmStrictTargetComparison::operator()(cmTarget *t1, cmTarget *t2) const
+bool cmStrictTargetComparison::operator()(cmTarget const* t1,
+ cmTarget const* t2) const
{
int nameResult = strcmp(t1->GetName(), t2->GetName());
if (nameResult == 0)
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index d2b65b2..6aff5f0 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -101,7 +101,7 @@ private:
};
struct cmStrictTargetComparison {
- bool operator()(cmTarget *t1, cmTarget *t2) const;
+ bool operator()(cmTarget const* t1, cmTarget const* t2) const;
};
typedef std::map<cmTarget*,
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index fe68a8a..8e4ce8b 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1063,7 +1063,7 @@ void cmTarget::FinalizeSystemIncludeDirectories()
std::string targetName = cge->Evaluate(this->Makefile, 0,
false, this, 0, 0);
cmTarget *tgt = this->Makefile->FindTargetToUse(targetName.c_str());
- if (!tgt)
+ if (!tgt || tgt == this)
{
continue;
}