fonts/CMakeLists.txt: Set LIST_DIRECTORIES to false
According to the documentation [1]: New in version 3.3: By default GLOB lists directories. This causes SD_INSTALL_FILES to fail since it might pass a directory (e.g.: .svn) to install(FILES), which rejects directories [2]. Notes: CMake recommends not to rely on GLOB expressions for several reasons [1]. Future commits should refactor this logic so as to avoid them. [1]: https://cmake.org/cmake/help/latest/command/file.html#glob [2]: https://cmake.org/cmake/help/latest/command/install.html#files git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9604 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
4631acc901
commit
2b8ec048fd
1 changed files with 6 additions and 6 deletions
|
@ -1,14 +1,14 @@
|
|||
INCLUDE(../../../cmake/macros.cmake)
|
||||
|
||||
FILE(GLOB glf *.glf)
|
||||
FILE(GLOB ttf *.ttf)
|
||||
FILE(GLOB glf LIST_DIRECTORIES false *.glf)
|
||||
FILE(GLOB ttf LIST_DIRECTORIES false *.ttf)
|
||||
|
||||
SD_INSTALL_FILES(DATA data/fonts FILES ${glf} ${ttf})
|
||||
|
||||
FILE(GLOB 5by7 5by7/*.*)
|
||||
FILE(GLOB ArmataHL ArmataHL/*.*)
|
||||
FILE(GLOB Montserrant Montserrant/*.*)
|
||||
FILE(GLOB vera vera/*.*)
|
||||
FILE(GLOB 5by7 LIST_DIRECTORIES false 5by7/*.*)
|
||||
FILE(GLOB ArmataHL LIST_DIRECTORIES false ArmataHL/*.*)
|
||||
FILE(GLOB Montserrant LIST_DIRECTORIES false Montserrant/*.*)
|
||||
FILE(GLOB vera LIST_DIRECTORIES false vera/*.*)
|
||||
|
||||
SD_INSTALL_FILES(DATA data/fonts/5by7 FILES ${5by7})
|
||||
SD_INSTALL_FILES(DATA data/fonts/ArmataHL FILES ${ArmataHL})
|
||||
|
|
Loading…
Reference in a new issue