From b8b982c136e77b7e8dce7058ccda0f61dbf4a979 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 29 Dec 2024 12:45:32 +0100 Subject: [PATCH] cmake: use `STREQUAL` to detect Linux Instead of `MATCHES`. To sync with another check that already used `STREQUAL`. Closes #15855 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()