Merge topic 'try_compile-shorter-names'
f3e9eeed
try_compile: Use shorter test executable name with consistent length
This commit is contained in:
commit
0e6af85263
|
@ -383,8 +383,8 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
|
||||||
|
|
||||||
/* Use a random file name to avoid rapid creation and deletion
|
/* Use a random file name to avoid rapid creation and deletion
|
||||||
of the same executable name (some filesystems fail on that). */
|
of the same executable name (some filesystems fail on that). */
|
||||||
sprintf(targetNameBuf, "cmTryCompileExec%u",
|
sprintf(targetNameBuf, "cmTC_%05x",
|
||||||
cmSystemTools::RandomSeed());
|
cmSystemTools::RandomSeed() & 0xFFFFF);
|
||||||
targetName = targetNameBuf;
|
targetName = targetNameBuf;
|
||||||
|
|
||||||
if (!targets.empty())
|
if (!targets.empty())
|
||||||
|
|
Loading…
Reference in New Issue