|
|
@@ -8,6 +8,7 @@
|
|
|
|
|
|
#include <cmext/algorithm>
|
|
|
|
|
|
+#include "cmAlgorithms.h"
|
|
|
#include "cmCustomCommand.h"
|
|
|
#include "cmCustomCommandLines.h"
|
|
|
#include "cmGeneratorExpression.h"
|
|
|
@@ -29,6 +30,9 @@ void AppendPaths(const std::vector<std::string>& inputs,
|
|
|
cmExpandedList(cge->Evaluate(lg, config));
|
|
|
for (std::string& it : result) {
|
|
|
cmSystemTools::ConvertToUnixSlashes(it);
|
|
|
+ if (cmContains(it, '/') && !cmSystemTools::FileIsFullPath(it)) {
|
|
|
+ it = cmStrCat(lg->GetMakefile()->GetCurrentBinaryDirectory(), '/', it);
|
|
|
+ }
|
|
|
if (cmSystemTools::FileIsFullPath(it)) {
|
|
|
it = cmSystemTools::CollapseFullPath(it);
|
|
|
}
|