cmake: fix check for /proc/self/stat

Using the result of the exists test directly always passes.
This commit is contained in:
David Adam 2017-11-12 22:02:36 +08:00
parent af93db668c
commit 8543a4061e

View file

@ -78,7 +78,9 @@ IF(STRUCT_WINSIZE GREATER -1 AND HAVE_TIOCGWINSZ EQUAL 1)
ENDIF() ENDIF()
SET(CMAKE_EXTRA_INCLUDE_FILES) SET(CMAKE_EXTRA_INCLUDE_FILES)
SET(HAVE__PROC_SELF_STAT (EXISTS "/proc/self/stat")) IF(EXISTS "/proc/self/stat")
SET(HAVE__PROC_SELF_STAT 1)
ENDIF()
CHECK_TYPE_SIZE("wchar_t[8]" WCHAR_T_BITS LANGUAGE CXX) CHECK_TYPE_SIZE("wchar_t[8]" WCHAR_T_BITS LANGUAGE CXX)
# Not checked yet: non-varargs tparm ("Solaris tparm kludge") # Not checked yet: non-varargs tparm ("Solaris tparm kludge")