Skip to content

Commit

Permalink
fix: don't treat compiler warnings as errors while compiling the C co…
Browse files Browse the repository at this point in the history
…re, refs #654
  • Loading branch information
ntamas committed Apr 22, 2023
1 parent 669fe5b commit ae4bd3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ def _compile_in(
# No need to build tests
args.append("-DBUILD_TESTING=OFF")

# Do not treat compilation warnings as errors in case someone is trying
# to "pip install" igraph in an environment for which we don't provide
# wheels and the compiler complains about harmless things
args.append("-DIGRAPH_WARNINGS_AS_ERRORS=OFF")

# Set install directory during config step instead of install step in order
# to avoid having the architecture name in the LIBPATH (e.g. lib/x86_64-linux-gnu)
args.append("-DCMAKE_INSTALL_PREFIX=" + str(install_folder))
Expand Down

0 comments on commit ae4bd3f

Please sign in to comment.