]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: use `STREQUAL` to detect Linux
authorViktor Szakats <commit@vsz.me>
Sun, 29 Dec 2024 11:45:32 +0000 (12:45 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 29 Dec 2024 12:14:58 +0000 (13:14 +0100)
Instead of `MATCHES`.
To sync with another check that already used `STREQUAL`.

Closes #15855

CMakeLists.txt

index 2edb8d09887dcb4593b071360d4dda3b9d6f7071..45aea19456b74946e0733ee6b1a629d2790c521d 100644 (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()