Skip to content

Commit

Permalink
Replace Qt variable in generated Makefile. (#64)
Browse files Browse the repository at this point in the history
* Replace Qt variable in generated Makefile.

* use single quotes
  • Loading branch information
hgaiser authored and dirk-thomas committed Jul 29, 2019
1 parent c2d826b commit f012924
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/sip_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,14 @@ def split_paths(paths):
else:
makefile.extra_cxxflags.append('-std=c++14')

# Finalise the Makefile, preparing it to be saved to disk
makefile.finalise()

# Replace Qt variables from libraries
libs = makefile.LIBS.as_list()
for i in range(len(libs)):
libs[i] = libs[i].replace('$$[QT_INSTALL_LIBS]', config.build_macros()['LIBDIR_QT'])
makefile.LIBS.set(libs)

# Generate the Makefile itself
makefile.generate()

0 comments on commit f012924

Please sign in to comment.