[2.0] Backport from trunk

Make sure to have a non empty list
This commit is contained in:
Mathieu Malaterre 2014-03-25 15:31:00 +00:00
parent f776cffbc6
commit d7c5c8518f
1 changed files with 2 additions and 0 deletions

View File

@ -376,7 +376,9 @@ foreach(f ${OPJ_DATA_NR_LIST})
get_filename_component(ff ${f} NAME) get_filename_component(ff ${f} NAME)
list(APPEND existing_filenames ${ff}) list(APPEND existing_filenames ${ff})
endforeach() endforeach()
if(existing_filenames)
list(REMOVE_ITEM existing_filenames ${nonregression_filenames_used}) list(REMOVE_ITEM existing_filenames ${nonregression_filenames_used})
endif()
# keep track of new addition: # keep track of new addition:
# if we reach here, then a J2K files was added but no test is present in # if we reach here, then a J2K files was added but no test is present in