[CMake] GLOB_RECURSE
Michael Hennebry
michael.hennebry at rivieranexus.com
Wed Jul 25 18:47:14 EDT 2018
Emphasis on curse.
from CMakeLists.txt:
file (GLOB_RECURSE ards ./ArduinoCore/src *.cpp *.c)
file (GLOB_RECURSE apps ./SensorUnit *.cpp *.c)
message("apps:;${apps};:apps")
message("ards:;${ards};:ards")
Both lists have ArduinoCore and SensorUnit sources.
They both have precisely 57 entries.
They both have three entries from sb-build.
What is going on?
>From the siblings' parent:
$ ls -F
ArduinoCore/ SensorUnit/ generic-gcc-avr.cmake
CMakeLists.txt from-build-directory.sh sb-build/
I tried RELATIVE.
I tried replacing the dot with ${CMAKE_SOURCE_DIR}.
All to no avail.
I'm stumped.
More information about the CMake
mailing list