1 diff --git a/cmake_modules/FindPythonLibsNew.cmake b/cmake_modules/FindPythonLibsNew.cmake
2 --- a/cmake_modules/FindPythonLibsNew.cmake
3 +++ b/cmake_modules/FindPythonLibsNew.cmake
4 @@ -117,6 +117,7 @@ list(GET _PYTHON_VALUES 6 PYTHON_SIZEOF_VOID_P)
5 list(GET _PYTHON_VALUES 7 PYTHON_LIBRARY_SUFFIX)
6 list(GET _PYTHON_VALUES 8 PYTHON_LIBRARY_PATH)
7 list(GET _PYTHON_VALUES 9 PYTHON_OTHER_LIBS)
8 +string(REPLACE "-lncurses" "" PYTHON_OTHER_LIBS "${PYTHON_OTHER_LIBS}")
10 # Make sure the Python has the same pointer-size as the chosen compiler
11 # Skip the check on OS X, it doesn't consistently have CMAKE_SIZEOF_VOID_P defined