diff options
author | Brad King <brad.king@kitware.com> | 2009-10-21 17:11:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-21 17:11:16 (GMT) |
commit | 7a9f75c1a8ab159398ee852774904e7b7b0457c2 (patch) | |
tree | ecb6cdd7f2b55d7662d20deba42b69def786b60a /Source/cmIfCommand.cxx | |
parent | a52fd03a2a6cd50a201309f8629ea76acf7cd10a (diff) | |
download | CMake-7a9f75c1a8ab159398ee852774904e7b7b0457c2.zip CMake-7a9f75c1a8ab159398ee852774904e7b7b0457c2.tar.gz CMake-7a9f75c1a8ab159398ee852774904e7b7b0457c2.tar.bz2 |
Add IS_SYMLINK test to if command
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index b51fabb..8cba111 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -508,6 +508,13 @@ namespace cmSystemTools::FileIsDirectory((argP1)->c_str()), reducible, arg, newArgs, argP1, argP2); } + // does a symlink with this name exist + if (*arg == "IS_SYMLINK" && argP1 != newArgs.end()) + { + HandlePredicate( + cmSystemTools::FileIsSymlink((argP1)->c_str()), + reducible, arg, newArgs, argP1, argP2); + } // is the given path an absolute path ? if (*arg == "IS_ABSOLUTE" && argP1 != newArgs.end()) { |