From 406dcfccbb1bf7d72cec48be09cc811ac98bbb4c Mon Sep 17 00:00:00 2001 From: Yu Shi Date: Wed, 20 Apr 2022 06:52:09 +0000 Subject: [PATCH] remove extra spaces --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6ae37285405..0cdbf54513a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -324,11 +324,11 @@ if(WIN32 AND MINGW) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++") endif() -if (WIN32) +if(WIN32) include(CheckSymbolExists) list(APPEND CMAKE_REQUIRED_LIBRARIES "ws2_32") check_symbol_exists(inet_pton "ws2tcpip.h" INET_PTON_FOUND) - if (INET_PTON_FOUND) + if(INET_PTON_FOUND) add_definitions(-DHAS_INET_PTON) endif() endif()