X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=967715e8cce0cd909ad8f6eb88b792df2c614324;hp=98999156b1b57bb0ca81ca7b54f0bf83aa35ef29;hb=b2034ad5df2d6bf6b7a40899083a16909193912e;hpb=a2b34a0569a41b6a0c04c454b7e730452d5d1ebc diff --git a/CMakeLists.txt b/CMakeLists.txt index 98999156..967715e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -399,10 +399,12 @@ 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) +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.