Skip to content

Commit

Permalink
dont set QMAKE_RPATHLINKDIR for msvc, fix the issue 'LINK : error LNK…
Browse files Browse the repository at this point in the history
…1218: warning treated as error, LINK : warning LNK4044: unrecognized option '/Wl,-rpath-link= ...'
  • Loading branch information
wboussafa committed Jul 13, 2022
1 parent 03b8bd9 commit 6dda043
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/qt/5.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,8 @@ def build(self):
args += ["-I \"%s\"" % s for s in self.deps_cpp_info[package].include_paths]
args += ["-D %s" % s for s in self.deps_cpp_info[package].defines]
args.append("QMAKE_LIBDIR+=\"%s\"" % " ".join(l for package in self.deps_cpp_info.deps for l in self.deps_cpp_info[package].lib_paths))
args.append("QMAKE_RPATHLINKDIR+=\"%s\"" % ":".join(l for package in self.deps_cpp_info.deps for l in self.deps_cpp_info[package].lib_paths))
if not self._is_msvc:
args.append("QMAKE_RPATHLINKDIR+=\"%s\"" % ":".join(l for package in self.deps_cpp_info.deps for l in self.deps_cpp_info[package].lib_paths))

if "libmysqlclient" in self.deps_cpp_info.deps:
args.append("-mysql_config \"%s\"" % os.path.join(self.deps_cpp_info["libmysqlclient"].rootpath, "bin", "mysql_config"))
Expand Down

0 comments on commit 6dda043

Please sign in to comment.