Warning, /plasma/plasma-desktop/ConfigureChecks.cmake is written in an unsupported language. File is not indexed.
0001 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} ) 0002 0003 pkg_get_variable(XKBDIR xkeyboard-config xkb_base) 0004 if (NOT XKBDIR) 0005 message(FATAL_ERROR "Couldn't find xkb_base using pkg-config: is xkeyboard-config installed?") 0006 elseif (CMAKE_CROSSCOMPILING) 0007 if (NOT EXISTS "${CMAKE_SYSROOT}/${XKBDIR}") 0008 message(FATAL_ERROR "Couldn't find XKB location in CMAKE_SYSROOT: \"${CMAKE_SYSROOT}/${XKBDIR}\"") 0009 endif() 0010 elseif(NOT EXISTS "${XKBDIR}") 0011 message(FATAL_ERROR "Couldn't find XKB location: \"${XKBDIR}\".") 0012 endif() 0013 0014 check_function_exists(statvfs HAVE_STATVFS) 0015 check_include_files(limits.h HAVE_LIMITS_H) 0016 check_include_files(sys/time.h HAVE_SYS_TIME_H) # ksmserver, ksplashml, sftp 0017 check_include_files("sys/stat.h;sys/vfs.h" HAVE_SYS_VFS_H) # statvfs for plasma/solid 0018 check_include_files("sys/stat.h;sys/statvfs.h" HAVE_SYS_STATVFS_H) # statvfs for plasma/solid 0019 check_include_files(sys/param.h HAVE_SYS_PARAM_H) 0020 check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H) 0021 check_include_files("sys/types.h;sys/statfs.h" HAVE_SYS_STATFS_H) 0022 check_include_files(unistd.h HAVE_UNISTD_H) 0023 set(HAVE_XCURSOR {X11_Xcursor_FOUND}) # many uses 0024 0025 set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h) 0026 0027 set(CMAKE_REQUIRED_INCLUDES ${X11_Xrandr_INCLUDE_PATH}/Xrandr.h) 0028 set(CMAKE_REQUIRED_LIBRARIES ${X11_Xrandr_LIB})