cmake: use STREQUAL to detect Linux

Instead of `MATCHES`.
To sync with another check that already used `STREQUAL`.

Closes #15855
This commit is contained in:
Viktor Szakats 2024-12-29 12:45:32 +01:00
parent c78044c07e
commit b8b982c136
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -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()