diff options
author | Brad King <brad.king@kitware.com> | 2008-05-14 15:38:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-14 15:38:47 (GMT) |
commit | 600e5e274ea5e78989c9355685e97d6f4d6f28ec (patch) | |
tree | d101d1d699fbbdb3a2e36a581228cd0c56d2b72a /Tests/CustomCommand/foo.in | |
parent | 3fb5602e547b4ae23ae9bdcc36be09bbc5f6fbea (diff) | |
download | CMake-600e5e274ea5e78989c9355685e97d6f4d6f28ec.zip CMake-600e5e274ea5e78989c9355685e97d6f4d6f28ec.tar.gz CMake-600e5e274ea5e78989c9355685e97d6f4d6f28ec.tar.bz2 |
ENH: Add SKIP_RULE_DEPENDS option for add_custom_command()
- Allows make rules to be created with no dependencies.
- Such rules will not re-run even if the commands themselves change.
- Useful to create rules that run only if the output is missing.
Diffstat (limited to 'Tests/CustomCommand/foo.in')
-rw-r--r-- | Tests/CustomCommand/foo.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CustomCommand/foo.in b/Tests/CustomCommand/foo.in index 08c559d..c5ce340 100644 --- a/Tests/CustomCommand/foo.in +++ b/Tests/CustomCommand/foo.in @@ -6,10 +6,11 @@ int generated(); int wrapped(); +int gen_once(void); int main () { - if (generated()*wrapped()*doc() == 3*5*7) + if (generated()*wrapped()*doc()*gen_once() == 3*5*7*11) { FILE* fin = fopen(PROJECT_BINARY_DIR "/not_included.h", "r"); if(fin) |