diff options
author | Brad King <brad.king@kitware.com> | 2008-08-20 15:45:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-08-20 15:45:16 (GMT) |
commit | fff812db95cea0844833e1cde2942ee52bffe911 (patch) | |
tree | fe64788489c02832604f6119a24ba2ff04428b67 /Tests/TarTest/TestTarExec.cxx | |
parent | 07665de0386e3ee572e95f999d6b516391331e26 (diff) | |
download | CMake-fff812db95cea0844833e1cde2942ee52bffe911.zip CMake-fff812db95cea0844833e1cde2942ee52bffe911.tar.gz CMake-fff812db95cea0844833e1cde2942ee52bffe911.tar.bz2 |
ENH: Add if(TARGET) command
It is useful to be able to test if a target has been created. Often
targets are created only inside conditions. Rather than storing the
result of the condition manually for testing by other parts of the
project, it is much easier for the other parts to just test for the
target's existence. This will also be useful when find-modules start
reporting results with IMPORTED targets and projects want to test if a
certain target is available.
Diffstat (limited to 'Tests/TarTest/TestTarExec.cxx')
0 files changed, 0 insertions, 0 deletions