Merge pull request #2052 from heinrich5991/pr_cmake_invalidorder

Add a notification when files are not sorted in CMake
This commit is contained in:
oy 2019-03-07 19:17:30 +01:00 committed by GitHub
commit 225d3243f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()