diff --git a/setup.py b/setup.py index 594901e..cf7a654 100644 --- a/setup.py +++ b/setup.py @@ -216,6 +216,13 @@ class IgraphCCoreCMakeBuilder: def _compile_in( self, source_folder: Path, build_folder: Path, install_folder: Path ) -> Union[bool, List[str]]: + emcmake = which("emcmake") + if not emcmake: + print( + "emcmake missing" + ) + return False + cmake = which("cmake") if not cmake: print( @@ -227,7 +234,9 @@ class IgraphCCoreCMakeBuilder: build_to_source_folder = os.path.relpath(source_folder, build_folder) print("Configuring build...") - args = [cmake] + args = [emcmake, cmake] + + args.append("-DIGRAPH_WARNINGS_AS_ERRORS:BOOL=OFF") # Build the Python interface with vendored libraries for deps in "ARPACK BLAS CXSPARSE GLPK GMP LAPACK".split():