From: Viktor Szakats Date: Sun, 29 Dec 2024 11:45:32 +0000 (+0100) Subject: cmake: use `STREQUAL` to detect Linux X-Git-Tag: curl-8_12_0~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8b982c136e77b7e8dce7058ccda0f61dbf4a979;p=thirdparty%2Fcurl.git cmake: use `STREQUAL` to detect Linux Instead of `MATCHES`. To sync with another check that already used `STREQUAL`. Closes #15855 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2edb8d0988..45aea19456 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,7 +225,7 @@ cmake_dependent_option(ENABLE_THREADED_RESOLVER "Enable threaded DNS lookup" include(PickyWarnings) -if(CMAKE_SYSTEM_NAME MATCHES "Linux") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE") # Required for sendmmsg() endif()