File tree Expand file tree Collapse file tree 1 file changed +2
-34
lines changed
Expand file tree Collapse file tree 1 file changed +2
-34
lines changed Original file line number Diff line number Diff line change @@ -3,38 +3,6 @@ if( WIN32 AND NOT CYGWIN )
33 set (PURE_WINDOWS 1)
44endif ()
55
6- if (CMAKE_SYSTEM_NAME STREQUAL "AIX" )
7- set (AIX 1)
8- endif ()
9-
10- if (CMAKE_SYSTEM_NAME STREQUAL "DragonFly" )
11- set (DRAGONFLY 1)
12- endif ()
13-
14- if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" )
15- set (FREEBSD 1)
16- endif ()
17-
18- if (CMAKE_SYSTEM_NAME STREQUAL "Haiku" )
19- set (HAIKU 1)
20- endif ()
21-
22- if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
23- set (LINUX 1)
24- endif ()
25-
26- if (CMAKE_SYSTEM_NAME STREQUAL "NetBSD" )
27- set (NETBSD 1)
28- endif ()
29-
30- if (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" )
31- set (OPENBSD 1)
32- endif ()
33-
34- if (CMAKE_SYSTEM_NAME STREQUAL "SunOS" )
35- set (SOLARIS 1)
36- endif ()
37-
386include (CheckIncludeFile)
397include (CheckLibraryExists)
408include (CheckSymbolExists)
@@ -49,7 +17,7 @@ include(CheckCompilerVersion)
4917include (CheckProblematicConfigurations)
5018include (HandleLLVMStdlib)
5119
52- if (ANDROID OR DRAGONFLY OR FREEBSD OR HAIKU OR LINUX OR NETBSD OR OPENBSD OR SOLARIS )
20+ if (ANDROID OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|Haiku|Linux|NetBSD|OpenBSD|SunOS" )
5321 set (HAVE_DLFCN_H 1)
5422 set (HAVE_ERRNO_H 1)
5523 set (HAVE_FCNTL_H 1)
@@ -68,7 +36,7 @@ if (ANDROID OR DRAGONFLY OR FREEBSD OR HAIKU OR LINUX OR NETBSD OR OPENBSD OR SO
6836 set (HAVE_SYSEXITS_H 1)
6937 set (HAVE_TERMIOS_H 1)
7038 set (HAVE_UNISTD_H 1)
71- elseif (AIX OR CYGWIN )
39+ elseif (CMAKE_SYSTEM_NAME STREQUAL " AIX" OR CYGWIN )
7240 set (HAVE_DLFCN_H 1)
7341 set (HAVE_ERRNO_H 1)
7442 set (HAVE_FCNTL_H 1)
You can’t perform that action at this time.
0 commit comments