summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-06 16:49:00 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-06 16:49:00 (GMT)
commitf35c0c2a171067ed6d953d7291c97de711301a61 (patch)
tree264c31ec301cebbbd9713ac56d7f05d7cc7ed136 /Source/cmake.cxx
parent2282748907896da8fb4aabcb5b76051c50ba2a5c (diff)
downloadCMake-f35c0c2a171067ed6d953d7291c97de711301a61.zip
CMake-f35c0c2a171067ed6d953d7291c97de711301a61.tar.gz
CMake-f35c0c2a171067ed6d953d7291c97de711301a61.tar.bz2
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.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 69cf6b4..eda91a3 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2666,7 +2666,8 @@ int cmake::CheckBuildSystem()
for(std::vector<std::string>::const_iterator pi = products.begin();
pi != products.end(); ++pi)
{
- if(!cmSystemTools::FileExists(pi->c_str()))
+ if(!(cmSystemTools::FileExists(pi->c_str()) ||
+ cmSystemTools::FileIsSymlink(pi->c_str())))
{
if(verbose)
{