From f35c0c2a171067ed6d953d7291c97de711301a61 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 6 Feb 2009 11:49:00 -0500 Subject: [PATCH] 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. --- Source/cmake.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 69cf6b4c0..eda91a384 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2666,7 +2666,8 @@ int cmake::CheckBuildSystem() for(std::vector::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) {