Merge pull request #273 from blueyed/cmake-no-recurse-into-build-dir

awesomeConfig.cmake: do not use GLOB_RECURSE with *.c/*.h
This commit is contained in:
Daniel Hahler 2015-07-03 19:11:09 +02:00
commit 768a5b181e
1 changed files with 7 additions and 8 deletions

View File

@ -278,14 +278,14 @@ set(AWESOME_THEMES_PATH ${AWESOME_DATA_PATH}/themes)
# }}} # }}}
# {{{ Configure files # {{{ Configure files
file(GLOB_RECURSE awesome_c_configure_files RELATIVE file(GLOB awesome_c_configure_files RELATIVE ${SOURCE_DIR}
${SOURCE_DIR}
${SOURCE_DIR}/*.c ${SOURCE_DIR}/*.c
${SOURCE_DIR}/*.h ${SOURCE_DIR}/*.h
${SOURCE_DIR}/*/*.c ${SOURCE_DIR}/common/*.c
${SOURCE_DIR}/*/*.h) ${SOURCE_DIR}/common/*.h
file(GLOB_RECURSE awesome_lua_configure_files RELATIVE ${SOURCE_DIR}/objects/*.c
${SOURCE_DIR} ${SOURCE_DIR}/objects/*.h)
file(GLOB_RECURSE awesome_lua_configure_files RELATIVE ${SOURCE_DIR}
${SOURCE_DIR}/lib/*.lua ${SOURCE_DIR}/lib/*.lua
${SOURCE_DIR}/themes/*/*.lua) ${SOURCE_DIR}/themes/*/*.lua)
set(AWESOME_CONFIGURE_FILES set(AWESOME_CONFIGURE_FILES
@ -305,8 +305,7 @@ endforeach()
#}}} #}}}
# {{{ Copy additional files # {{{ Copy additional files
file(GLOB_RECURSE awesome_md_docs RELATIVE file(GLOB awesome_md_docs RELATIVE ${SOURCE_DIR}
${SOURCE_DIR}
${SOURCE_DIR}/docs/*.md) ${SOURCE_DIR}/docs/*.md)
set(AWESOME_ADDITIONAL_FILES set(AWESOME_ADDITIONAL_FILES
${awesome_md_docs}) ${awesome_md_docs})