Remove unnecessary GLOB

This commit is contained in:
Andrew Nelless 2017-02-10 16:43:58 +00:00
parent 99473fbb9a
commit d45831f5ea
1 changed files with 1 additions and 1 deletions

View File

@ -353,13 +353,13 @@ macro(configure_files srcDir destDir)
endif ()
endforeach (sourceFile)
file (GLOB_RECURSE templateFiles RELATIVE ${srcDir} ${srcDir}/*.in)
foreach (templateFile ${templateFiles})
set (sourceTemplateFilePath ${srcDir}/${templateFile})
string (REGEX REPLACE "\.in$" "" templateFile ${templateFile})
message (STATUS "Configuring file ${templateFile}")
configure_file (${sourceTemplateFilePath} ${destDir}/${templateFile} @ONLY)
endforeach (templateFile)
endmacro (configure_files)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")