Add test to secure the file(GLOB empty) behavior.

This commit is contained in:
Amine Chadly 2012-09-29 20:27:21 +02:00 committed by Rolf Eike Beer
parent c2a6cb64af
commit 48ed48f7ad
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ check_cmake_test(File
SHA512-Works
)
file(GLOB hum)
if (NOT hum STREQUAL "")
message(FATAL_ERROR "file(GLOB hum) did not return an empty string.")
endif()
# Also execute each test listed in FileTestScript.cmake:
#
set(scriptname "@CMAKE_CURRENT_SOURCE_DIR@/FileTestScript.cmake")