diff --git a/cpp/src/arrow/CMakeLists.txt b/cpp/src/arrow/CMakeLists.txt index fac4d67c79bb6..6e2294371e7a6 100644 --- a/cpp/src/arrow/CMakeLists.txt +++ b/cpp/src/arrow/CMakeLists.txt @@ -166,8 +166,7 @@ if(WIN32) list(APPEND ARROW_SYSTEM_LINK_LIBS "ws2_32") endif() -if(NOT WIN32 AND NOT APPLE) - # Pass -lrt on Linux only +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") list(APPEND ARROW_SYSTEM_LINK_LIBS rt) endif()