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:
parent
2282748907
commit
f35c0c2a17
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue