awesomeConfig.cmake: do not use GLOB_RECURSE with *.c/*.h
This fixes "make (cmake)" picking up the files from the build dir itself (recursively), i.e. "make cmake" would also create `.build-HOST-x86_64-linux-gnu-4.9.2/.build-HOST-x86_64-linux-gnu-4.9.2/`. It could also use `${AWE_SRCS}` etc here probably.
This commit is contained in:
parent
32b584258b
commit
1992e1e429
|
@ -277,14 +277,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
|
||||||
|
@ -304,8 +304,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})
|
||||||
|
|
Loading…
Reference in New Issue