diff --git a/CMakeLists.txt b/CMakeLists.txt index 868880669..a9195dc96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,8 +253,10 @@ if(LDFLAGS) endif() # Search for the following programs -find_program(CHGRP "chgrp" REQUIRED) -find_program(CHMOD "chmod" REQUIRED) +if(NOT WIN32 AND RUNGROUP) + find_program(CHGRP "chgrp" REQUIRED) + find_program(CHMOD "chmod" REQUIRED) +endif() # If a INSTDIR was passed in to CMake, use it as the install prefix, otherwise set the default install prefix to the anope directory under the user's home directory if(INSTDIR)