ENH: Move permissions code to kwsys so that copyfile can use it. Fixes Bug #1133 - cmake -E copy file dir sets the wrong permissions on the destination directory

This commit is contained in:
Andy Cedilnik
2004-09-29 12:20:52 -04:00
parent cf8d34040e
commit 3fc7dc5e70
4 changed files with 56 additions and 46 deletions
-5
View File
@@ -20,7 +20,6 @@
#include "cmStandardIncludes.h"
#include <cmsys/SystemTools.hxx>
#include <sys/types.h>
/** \class cmSystemTools
* \brief A collection of useful functions for CMake.
@@ -278,10 +277,6 @@ public:
of the form var=value */
static bool PutEnv(const char* value);
///! Get permissions of the file
static bool GetPermissions(const char* file, mode_t& mode);
static bool SetPermissions(const char* file, mode_t mode);
private:
static bool s_ForceUnixPaths;
static bool s_RunCommandHideConsole;