summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionDAGChecker.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2018-09-28 15:30:22 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2018-11-08 13:58:57 (GMT)
commit023188ffb48cc35ebab7cabbafefcd6dd31b750d (patch)
tree088a0aea32a5e1a514cbb61b6bc5a007ad6a827b /Source/cmGeneratorExpressionDAGChecker.cxx
parent17e98e00c449ebdceac980c0ce65c800030605db (diff)
downloadCMake-023188ffb48cc35ebab7cabbafefcd6dd31b750d.zip
CMake-023188ffb48cc35ebab7cabbafefcd6dd31b750d.tar.gz
CMake-023188ffb48cc35ebab7cabbafefcd6dd31b750d.tar.bz2
INTERFACE_POSITION_INDEPENDENT_CODE: add generator expressions support
Fixes: #16532
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.cxx')
-rw-r--r--Source/cmGeneratorExpressionDAGChecker.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.cxx b/Source/cmGeneratorExpressionDAGChecker.cxx
index 8d57441..56eb2bf 100644
--- a/Source/cmGeneratorExpressionDAGChecker.cxx
+++ b/Source/cmGeneratorExpressionDAGChecker.cxx
@@ -166,6 +166,18 @@ bool cmGeneratorExpressionDAGChecker::EvaluatingGenexExpression()
return top->Property == "TARGET_GENEX_EVAL" || top->Property == "GENEX_EVAL";
}
+bool cmGeneratorExpressionDAGChecker::EvaluatingPICExpression()
+{
+ const cmGeneratorExpressionDAGChecker* top = this;
+ const cmGeneratorExpressionDAGChecker* parent = this->Parent;
+ while (parent) {
+ top = parent;
+ parent = parent->Parent;
+ }
+
+ return top->Property == "INTERFACE_POSITION_INDEPENDENT_CODE";
+}
+
bool cmGeneratorExpressionDAGChecker::EvaluatingLinkLibraries(
cmGeneratorTarget const* tgt)
{