From c05118dc49dab49f72a4798b1c67ab16c615f596 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 25 Mar 2014 15:29:19 +0000 Subject: [PATCH] [trunk] Add sentinel in case list empty. I was getting a cmake error `list sub-command REMOVE_ITEM requires list to be present` --- tests/nonregression/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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