Seems to be included transitively not in all configurations.
Also fix capitalization of the call to adhere to our cmake style.
+include(CheckFunctionExists)
include(CheckIncludeFile)
# cmake 2.6.2 is required for KDE >=4.2 and should be widespread enough now
include(CheckIncludeFile)
# cmake 2.6.2 is required for KDE >=4.2 and should be widespread enough now
add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR})
endif(HAVE_INDICATEQT)
add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR})
endif(HAVE_INDICATEQT)
-CHECK_FUNCTION_EXISTS(umask HAVE_UMASK)
+check_function_exists(umask HAVE_UMASK)
if(HAVE_UMASK)
add_definitions(-DHAVE_UMASK)
endif(HAVE_UMASK)
if(HAVE_UMASK)
add_definitions(-DHAVE_UMASK)
endif(HAVE_UMASK)