# build the Python readline suppression module only on Linux
if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT __ANDROID_NDK__)
   add_subdirectory(readline)
endif()

# Disable some warnings triggered by Python's headers.
check_cxx_compiler_flag("-Wno-macro-redefined"
                        CXX_SUPPORTS_NO_MACRO_REDEFINED)
if (CXX_SUPPORTS_NO_MACRO_REDEFINED)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-macro-redefined")
endif ()

# build the Python readline suppression module only on Linux
if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT __ANDROID_NDK__)
   add_subdirectory(readline)
endif()

Disable a warning for the python modules as the python C API headers trigger this warning. With this, 'ninja' succeeds without warnings for me on Linux.
Disable a warning for the python modules as the python C API headers
trigger this warning. With this, 'ninja' succeeds without warnings for
me on Linux.

git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@229096 91177308-0d34-0410-b5e6-96231b3b80d8
