ENH: Added more verbose output of what globbing results.

This commit is contained in:
Brad King 2003-07-23 09:10:39 -04:00
parent 0662fefca0
commit d4289ee2a9
1 changed files with 7 additions and 4 deletions

View File

@ -23,9 +23,9 @@ STRING(TOLOWER "CMake" tlvar)
# Escaping test # Escaping test
SET(var "\\ \" \ \t \n \r \# \( \) \0") SET(var "\\ \" \ \t \n \r \# \( \) \0")
MESSAGE(STATUS "Output: [${var}]") MESSAGE("Output: [${var}]")
SET(var \\ \" \ \t \n \r \# \( \) \0) SET(var \\ \" \ \t \n \r \# \( \) \0)
MESSAGE(STATUS "Output: [${var}]") MESSAGE("Output: [${var}]")
# Make directories test # Make directories test
FILE(MAKE_DIRECTORY FILE(MAKE_DIRECTORY
@ -67,7 +67,10 @@ FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h" "${outfile}")
# Test file glob # Test file glob
FILE(GLOB_RECURSE src_files "${CMAKE_CURRENT_SOURCE_DIR}/*") FILE(GLOB_RECURSE src_files "${CMAKE_CURRENT_SOURCE_DIR}/*")
MESSAGE(STATUS "Files in ${CMAKE_CURRENT_SOURCE_DIR} are ${src_files}") MESSAGE("Files in ${CMAKE_CURRENT_SOURCE_DIR} are ${src_files}")
FILE(GLOB src_files "${CMAKE_CURRENT_SOURCE_DIR}/[sS][!a-su-zA-Z0-9][^a-qs-zA-Z0-9]ing?ile*.cxx") SET(expr "${CMAKE_CURRENT_SOURCE_DIR}/[sS][!a-su-zA-Z0-9][^a-qs-zA-Z0-9]ing?ile*.cxx")
MESSAGE("Glob expression is [${expr}].")
FILE(GLOB src_files "${expr}")
MESSAGE("Globbed files [${src_files}].")
ADD_EXECUTABLE(StringFileTest ${src_files}) ADD_EXECUTABLE(StringFileTest ${src_files})