BUG: Fix OS X FW symlink byproduct dependencies

When testing whether to re-run CMake, a byproduct may be a symlink.  If
so, the existence of the link is important rather than the link's
target.  See issue #8465.
This commit is contained in:
Brad King 2009-02-06 11:49:00 -05:00
parent 2282748907
commit f35c0c2a17
1 changed files with 2 additions and 1 deletions

View File

@ -2666,7 +2666,8 @@ int cmake::CheckBuildSystem()
for(std::vector<std::string>::const_iterator pi = products.begin(); for(std::vector<std::string>::const_iterator pi = products.begin();
pi != products.end(); ++pi) pi != products.end(); ++pi)
{ {
if(!cmSystemTools::FileExists(pi->c_str())) if(!(cmSystemTools::FileExists(pi->c_str()) ||
cmSystemTools::FileIsSymlink(pi->c_str())))
{ {
if(verbose) if(verbose)
{ {