diff --git a/conans/client/generators/qbs.py b/conans/client/generators/qbs.py index 3058288c98f..2d4ba336082 100644 --- a/conans/client/generators/qbs.py +++ b/conans/client/generators/qbs.py @@ -16,8 +16,8 @@ def __init__(self, cpp_info): self.cflags = delimiter.join('"%s"' % d for d in cpp_info.cflags) self.sharedlinkflags = delimiter.join('"%s"' % d for d in cpp_info.sharedlinkflags) - self.sharedlinkflags += delimiter.join('"%s"' % d - for d in cpp_info.exelinkflags) + self.exelinkflags = delimiter.join('"%s"' % d + for d in cpp_info.exelinkflags) self.bin_paths = delimiter.join('"%s"' % p.replace("\\", "/") for p in cpp_info.bin_paths) self.rootpath = '%s' % cpp_info.rootpath.replace("\\", "/") @@ -43,7 +43,7 @@ def content(self): ' cpp.defines: [{deps.defines}]\n' ' cpp.cppFlags: [{deps.cppflags}]\n' ' cpp.cFlags: [{deps.cflags}]\n' - ' cpp.linkerFlags: [{deps.sharedlinkflags}]\n' + ' cpp.linkerFlags: [{deps.sharedlinkflags}, {deps.exelinkflags}]\n' ' }}\n' ' }}\n')