From b840858febd35dea9ca3606b8b7114395cef6f56 Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Thu, 16 Jun 2022 11:33:56 -0700 Subject: [PATCH] [CMake] Remove redundant code (#8885) --- cmake/FindEditline.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/FindEditline.cmake b/cmake/FindEditline.cmake index b884a9de4..f525d7bf7 100644 --- a/cmake/FindEditline.cmake +++ b/cmake/FindEditline.cmake @@ -41,9 +41,7 @@ if(Editline_INCLUDE_DIRS) unset(CMAKE_REQUIRED_LIBRARIES) unset(CMAKE_REQUIRED_INCLUDES) - if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") - set(Editline_LIBRARIES ${Editline_LIBRARIES}) - else() + if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(Editline_LIBRARIES ${Editline_LIBRARIES} bsd tinfo) endif() endif() -- 2.30.2