diff options
author | Brad King <brad.king@kitware.com> | 2009-02-06 16:49:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-06 16:49:00 (GMT) |
commit | f35c0c2a171067ed6d953d7291c97de711301a61 (patch) | |
tree | 264c31ec301cebbbd9713ac56d7f05d7cc7ed136 /Source | |
parent | 2282748907896da8fb4aabcb5b76051c50ba2a5c (diff) | |
download | CMake-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')
-rw-r--r-- | Source/cmake.cxx | 3 |
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) { |