cmake: use APPLE instead of CMAKE_SYSTEM_NAME string

Follow-up to a86254b393 #12515
Closes #13713
This commit is contained in:
Viktor Szakats 2024-05-19 18:42:11 +02:00
parent 0e176cabe4
commit 739ef9804d
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
2 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ if(ENABLE_IPV6 AND NOT WIN32)
CACHE BOOL "Define if you want to enable IPv6 support" FORCE)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT ENABLE_ARES)
if(APPLE AND NOT ENABLE_ARES)
set(use_core_foundation_and_core_services ON)
find_library(SYSTEMCONFIGURATION_FRAMEWORK "SystemConfiguration")

View File

@ -68,9 +68,9 @@ endif()
transform_makefile_inc("Makefile.soname" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.soname.cmake")
include(${CMAKE_CURRENT_BINARY_DIR}/Makefile.soname.cmake)
if(CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
if(APPLE OR
CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
CMAKE_SYSTEM_NAME STREQUAL "Linux" OR
CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR
CMAKE_SYSTEM_NAME STREQUAL "SunOS" OR
CMAKE_SYSTEM_NAME STREQUAL "GNU/kFreeBSD" OR