X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=967715e8cce0cd909ad8f6eb88b792df2c614324;hp=4ddaf6682dcf20526ecfb6b85fa578806c4dad2c;hb=b2034ad5df2d6bf6b7a40899083a16909193912e;hpb=98bec7bab038a8e656f90617c59fe1e8c0907f71 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ddaf668..967715e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ project(QuasselIRC) +include(CheckFunctionExists) include(CheckIncludeFile) # cmake 2.6.2 is required for KDE >=4.2 and should be widespread enough now @@ -398,6 +399,13 @@ if(HAVE_INDICATEQT) add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR}) endif(HAVE_INDICATEQT) +if(NOT WIN32) + check_function_exists(umask HAVE_UMASK) + if(HAVE_UMASK) + add_definitions(-DHAVE_UMASK) + endif(HAVE_UMASK) +endif(NOT WIN32) + # We need to create a version.gen # For this, we create our genversion binary and make sure it is run every time. add_executable(genversion ${CMAKE_SOURCE_DIR}/src/common/genversion.cpp)