Merge topic 'ctest-add_subdirectory-crash'
64821e8a
ctest: fix add_subdirectory() crash
This commit is contained in:
commit
eda29e6632
|
@ -176,7 +176,7 @@ bool cmCTestAddSubdirectoryCommand
|
||||||
cmSystemTools::ChangeDirectory(cwd);
|
cmSystemTools::ChangeDirectory(cwd);
|
||||||
std::string fname = cwd;
|
std::string fname = cwd;
|
||||||
fname += "/";
|
fname += "/";
|
||||||
fname += args[1];
|
fname += args[0];
|
||||||
|
|
||||||
if ( !cmSystemTools::FileExists(fname.c_str()) )
|
if ( !cmSystemTools::FileExists(fname.c_str()) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue