Bug 9090: CTest does not handle absolute paths in CTestTestfile SUBDIR( ) entries.

The ctest subdirs command now checks the relative path first, and if that does not exist, also checks if the given path was absolute.  Thanks vodall for the patch.
This commit is contained in:
Zach Mullen 2009-11-09 14:07:36 -05:00
parent 2362fdc850
commit 17afd5257b
1 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,12 @@ bool cmCTestSubdirCommand
fname += "/";
fname += *it;
//sanity check on relative path; if not, try absolute path
if ( !cmSystemTools::FileIsDirectory(fname.c_str()))
{
fname = *it;
}
if ( !cmSystemTools::FileExists(fname.c_str()) )
{
// No subdirectory? So what...