From: Viktor Szakats Date: Sun, 19 May 2024 16:42:11 +0000 (+0200) Subject: cmake: use `APPLE` instead of `CMAKE_SYSTEM_NAME` string X-Git-Tag: curl-8_9_0~376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=739ef9804d8e1e9b4a8d2a610896babc62c5524b;p=thirdparty%2Fcurl.git cmake: use `APPLE` instead of `CMAKE_SYSTEM_NAME` string Follow-up to a86254b39307af1a53735b065a382567805cd9b8 #12515 Closes #13713 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index be5e18f6b8..5fdd01b146 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 4748a7895e..91feaba841 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -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