diff --git a/setup.py b/setup.py index e153951..df2d32d 100644 --- a/setup.py +++ b/setup.py @@ -205,7 +205,7 @@ def link_args(): [ Extension( "_amplpy", - libraries=["ampl"], + libraries=["libampl" if platform.system() in ["Windows"] else "ampl"], library_dirs=[os.path.join(LIBRARY_BASE, LIBRARY)], include_dirs=[os.path.join(CPP_BASE, "include")], extra_compile_args=compile_args(),