Merge topic 'ctest-add_subdirectory-crash'

64821e8a ctest: fix add_subdirectory() crash
This commit is contained in:
Brad King 2015-07-28 10:08:46 -04:00 committed by CMake Topic Stage
commit eda29e6632
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ bool cmCTestAddSubdirectoryCommand
cmSystemTools::ChangeDirectory(cwd);
std::string fname = cwd;
fname += "/";
fname += args[1];
fname += args[0];
if ( !cmSystemTools::FileExists(fname.c_str()) )
{