mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 20:09:00 +08:00
25 lines
891 B
Diff
25 lines
891 B
Diff
diff --git a/CMake/OtherTests.cmake b/CMake/OtherTests.cmake
|
|
index d67a905..dcd1eee 100644
|
|
--- a/CMake/OtherTests.cmake
|
|
+++ b/CMake/OtherTests.cmake
|
|
@@ -87,7 +87,7 @@ endif()
|
|
unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
|
|
|
|
if(NOT CMAKE_CROSSCOMPILING)
|
|
- if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "iOS")
|
|
+ if(NOT APPLE)
|
|
# only try this on non-apple platforms
|
|
|
|
# if not cross-compilation...
|
|
@@ -140,8 +140,8 @@ if(WIN32)
|
|
set(HAVE_GETADDRINFO_THREADSAFE ${HAVE_GETADDRINFO})
|
|
elseif(NOT HAVE_GETADDRINFO)
|
|
set(HAVE_GETADDRINFO_THREADSAFE FALSE)
|
|
-elseif(CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
|
|
- CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR
|
|
+elseif(APPLE OR
|
|
+ CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
|
|
CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR
|
|
CMAKE_SYSTEM_NAME STREQUAL "HP-UX" OR
|
|
CMAKE_SYSTEM_NAME STREQUAL "MidnightBSD" OR
|