diff options
author | Sadie Powell <sadie@witchery.services> | 2023-12-07 15:57:31 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-12-07 15:59:19 +0000 |
commit | 84c2f8d3fc417e97ed336c48b8a5c4eea71b52aa (patch) | |
tree | 6289edfcdd0a5c0fafd71e8d5d3e9f1bed75a43a /CMakeLists.txt | |
parent | 8d99b3e2d71488a834aaf313e371ae81f8ebc35b (diff) |
Skip checking for chgrp/chmod on Windows.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files 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) |