diff options
author | Brad King <brad.king@kitware.com> | 2015-02-11 14:59:20 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-02-11 14:59:20 (GMT) |
commit | 0e6af852637ada6b2343f1cbf1ac5ccf0b1b3c76 (patch) | |
tree | 2a59c33b0d25b39b5b438059d2ff7bfa9bd56884 | |
parent | 939167a65cf7e057ac98c63f8e3ff0acd4129c28 (diff) | |
parent | f3e9eeedf43f783c02b2a2a10fc0e632eaf7cfd0 (diff) | |
download | CMake-0e6af852637ada6b2343f1cbf1ac5ccf0b1b3c76.zip CMake-0e6af852637ada6b2343f1cbf1ac5ccf0b1b3c76.tar.gz CMake-0e6af852637ada6b2343f1cbf1ac5ccf0b1b3c76.tar.bz2 |
Merge topic 'try_compile-shorter-names'
f3e9eeed try_compile: Use shorter test executable name with consistent length
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index c414553..d9369e6 100644 --- a/Source/cmCoreTryCompile.cxx +++ b/Source/cmCoreTryCompile.cxx @@ -383,8 +383,8 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv) /* Use a random file name to avoid rapid creation and deletion of the same executable name (some filesystems fail on that). */ - sprintf(targetNameBuf, "cmTryCompileExec%u", - cmSystemTools::RandomSeed()); + sprintf(targetNameBuf, "cmTC_%05x", + cmSystemTools::RandomSeed() & 0xFFFFF); targetName = targetNameBuf; if (!targets.empty()) |