X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=291e21c2a55fcbd452b5b3aa4902993a9f87f1ae;hp=4ddaf6682dcf20526ecfb6b85fa578806c4dad2c;hb=26ab99ecabdbff2c7b66dc28039fe904bbce0520;hpb=e83af91ed6e4cf4506686bde3f07634470c83ac7 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ddaf668..291e21c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -398,6 +398,11 @@ if(HAVE_INDICATEQT) add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR}) endif(HAVE_INDICATEQT) +CHECK_FUNCTION_EXISTS(umask HAVE_UMASK) +if(HAVE_UMASK) + add_definitions(-DHAVE_UMASK) +endif(HAVE_UMASK) + # 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)