diff options
author | Brad King <brad.king@kitware.com> | 2004-12-09 20:23:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-12-09 20:23:37 (GMT) |
commit | e8ef42ed740d0b0fb6a07e5015f14c8c836c8363 (patch) | |
tree | 07408bebc1a3f5129a754241189083146a14736d /Source/cmLocalUnixMakefileGenerator2.cxx | |
parent | 1480676dab3fed9dc7ebf2ec8552731c897e18a5 (diff) | |
download | CMake-e8ef42ed740d0b0fb6a07e5015f14c8c836c8363.zip CMake-e8ef42ed740d0b0fb6a07e5015f14c8c836c8363.tar.gz CMake-e8ef42ed740d0b0fb6a07e5015f14c8c836c8363.tar.bz2 |
BUG: AppendAnyDepend must handle non-existing files.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 470d478..ce0090d 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -2078,7 +2078,7 @@ cmLocalUnixMakefileGenerator2 // There are a few cases for the name of the target: // - CMake target in this directory: depend on it. // - CMake target in another directory: depend and add jump-and-build. - // - Full path to an outside file: depend on it. + // - Full path to a file: depend on it. // - Other format (like -lm): do nothing. // If it is an executable or library target there will be a @@ -2180,14 +2180,10 @@ cmLocalUnixMakefileGenerator2 // directly. depends.push_back(name); } - else + else if(cmSystemTools::FileIsFullPath(name)) { - // This is not a CMake target. If it exists and is a full path we - // can depend on it. - if(cmSystemTools::FileExists(name) && cmSystemTools::FileIsFullPath(name)) - { - depends.push_back(name); - } + // This is a path to a file. Just trust that it will be present. + depends.push_back(name); } } |