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:
parent
c78044c07e
commit
b8b982c136
@ -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()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user