Add a notification when files are not sorted in CMake

Would've solved the problem in #2039 faster.
This commit is contained in:
heinrich5991 2019-03-07 12:19:44 +01:00
parent 9e16b376bb
commit fbdc6d69be

View file

@ -218,6 +218,9 @@ function(set_glob VAR GLOBBING EXTS DIRECTORY) # ...
if(GLOB_BUT_NOT_LIST)
message(AUTHOR_WARNING "Entries only present in ${DIRECTORY}: ${GLOB_BUT_NOT_LIST}")
endif()
if(NOT LIST_BUT_NOT_GLOB AND NOT GLOB_BUT_NOT_LIST)
message(AUTHOR_WARNING "${VAR} is not alphabetically sorted")
endif()
endif()
endif()