BUG: If the scanner is not defined this would crash. For example when using new language
This commit is contained in:
parent
904305e3cb
commit
8d8c3be72b
@ -2830,6 +2830,8 @@ cmLocalUnixMakefileGenerator3
|
||||
}
|
||||
#endif
|
||||
|
||||
if (scanner)
|
||||
{
|
||||
// for each file we need to scan
|
||||
std::string srcLang = "CMAKE_DEPENDS_CHECK_";
|
||||
srcLang += lang;
|
||||
@ -2848,8 +2850,6 @@ cmLocalUnixMakefileGenerator3
|
||||
}
|
||||
|
||||
// free the scanner for this language
|
||||
if (scanner)
|
||||
{
|
||||
delete scanner;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user