diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-25 15:29:19 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-25 15:29:19 +0000 |
| commit | c05118dc49dab49f72a4798b1c67ab16c615f596 (patch) | |
| tree | c3403f81e3031c77c3df8c0ee9e49cff3e645ee5 | |
| parent | 1adf89d5d2b3a40bf4f0e996456c1a98fc08bb93 (diff) | |
[trunk] Add sentinel in case list empty.
I was getting a cmake error `list sub-command REMOVE_ITEM requires list to be present`
| -rw-r--r-- | tests/nonregression/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/nonregression/CMakeLists.txt b/tests/nonregression/CMakeLists.txt index ee5209e3..175c3d16 100644 --- a/tests/nonregression/CMakeLists.txt +++ b/tests/nonregression/CMakeLists.txt @@ -376,7 +376,9 @@ foreach(f ${OPJ_DATA_NR_LIST}) get_filename_component(ff ${f} NAME) list(APPEND existing_filenames ${ff}) endforeach() +if(existing_filenames) list(REMOVE_ITEM existing_filenames ${nonregression_filenames_used}) +endif() # keep track of new addition: # if we reach here, then a J2K files was added but no test is present in |
