teak-llvm/lldb/scripts/Python/modules/CMakeLists.txt
Sylvestre Ledru 521d7b45ba Fix the cmake declaration syntax
llvm-svn: 290045
2016-12-17 13:04:35 +00:00

12 lines
500 B
CMake

# 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" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "GNU" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "kFreeBSD")
add_subdirectory(readline)
endif()