diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-26 09:54:27 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-26 12:01:53 (GMT) |
commit | 7a3e45b9d469e468e4db867d51e92ceeed132b79 (patch) | |
tree | 799987b5d663c5c143e948c2fee897dad9ef4218 /Source/cmGeneratorExpression.cxx | |
parent | f088a3245001350f9c429e27bd12a3394742b0b8 (diff) | |
download | CMake-7a3e45b9d469e468e4db867d51e92ceeed132b79.zip CMake-7a3e45b9d469e468e4db867d51e92ceeed132b79.tar.gz CMake-7a3e45b9d469e468e4db867d51e92ceeed132b79.tar.bz2 |
Export: Prefix relative items with genexes in INSTALL_INTERFACE.
Code such as
target_include_directories(foo INTERFACE
$<INSTALL_INTERFACE:include$<FOO>>
)
should be treated as a relative directory, despite the genex, after
the INSTALL_INTERFACE is stripped away.
Previously, this would generate a relative directory on export, which
would be an error on import, so no policy is needed.
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r-- | Source/cmGeneratorExpression.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx index f34a35b..2e66d78 100644 --- a/Source/cmGeneratorExpression.cxx +++ b/Source/cmGeneratorExpression.cxx @@ -245,7 +245,7 @@ static void prefixItems(const std::string &content, std::string &result, result += sep; sep = ";"; if (!cmSystemTools::FileIsFullPath(ei->c_str()) - && cmGeneratorExpression::Find(*ei) == std::string::npos) + && cmGeneratorExpression::Find(*ei) != 0) { result += prefix; } |