]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Add sentinel in case list empty.
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 25 Mar 2014 15:29:19 +0000 (15:29 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 25 Mar 2014 15:29:19 +0000 (15:29 +0000)
I was getting a cmake error `list sub-command REMOVE_ITEM requires list to be present`

tests/nonregression/CMakeLists.txt

index ee5209e32f7781dc366798b18632fdd867cd2e7d..175c3d160181afbd3dfdbfd55ef5db754c54be47 100644 (file)
@@ -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