Skip to content
Snippets Groups Projects
Commit 8ae25017 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: fix install problem on make and allow symlinks to cmake bin directory

parent e667a9a4
No related branches found
No related tags found
No related merge requests found
......@@ -2434,6 +2434,13 @@ kwsys_stl::string SystemTools
return "";
}
kwsys_stl::string SystemTools::GetRealPath(const char* path)
{
kwsys_stl::string ret;
Realpath(path, ret);
return ret;
}
bool SystemTools::FileIsDirectory(const char* name)
{
// Remove any trailing slash from the name.
......
......@@ -350,6 +350,11 @@ public:
static kwsys_stl::string CollapseFullPath(const char* in_relative,
const char* in_base);
/**
* Get the real path for a given path, removing all symlinks.
*/
static kwsys_stl::string GetRealPath(const char* path);
/**
* Split a path name into its root component and the rest of the
* path. The root component is one of the following:
......
......@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2008)
SET(KWSYS_DATE_STAMP_MONTH 03)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 17)
SET(KWSYS_DATE_STAMP_DAY 27)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment