From 84c2f8d3fc417e97ed336c48b8a5c4eea71b52aa Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 7 Dec 2023 15:57:31 +0000 Subject: [PATCH] Skip checking for chgrp/chmod on Windows. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)