Skip to content

Commit

Permalink
Fix compiling with qt5
Browse files Browse the repository at this point in the history
qt5 needs c++11, so sip generated bindings that depend on qt need to be build with c++11 as well
  • Loading branch information
Ruben Smits authored and dirk-thomas committed Jan 23, 2017
1 parent f5b61af commit 1847630
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/sip_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,8 @@ def split_paths(paths):
# redirect location of generated library
makefile._target = '"%s"' % os.path.join(output_dir, makefile._target)

# Force c++11 for qt5
makefile.extra_cxxflags.append('-std=c++11')

# Generate the Makefile itself
makefile.generate()

0 comments on commit 1847630

Please sign in to comment.