diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index bef55ffaf..1c6575e8e 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -78,7 +78,9 @@ IF(STRUCT_WINSIZE GREATER -1 AND HAVE_TIOCGWINSZ EQUAL 1) ENDIF() 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) # Not checked yet: non-varargs tparm ("Solaris tparm kludge")