Re: [CMake] GLOB_RECURSE

2018-07-25 Thread Dan Liew
On 25 July 2018 at 23:47, Michael Hennebry wrote: > Emphasis on curse. > > from CMakeLists.txt: > > file (GLOB_RECURSE ards ./ArduinoCore/src *.cpp *.c) > file (GLOB_RECURSE apps ./SensorUnit *.cpp *.c) Your syntax is wrong. `./ArduinoCore/src`, ` ./SensorUnit`, `*.cpp`, `*.c` are all being treat

Re: [CMake] Fwd: GLOB_RECURSE

2018-07-25 Thread J. Caleb Wherry
Latest CMake documentation can be found here: https://cmake.org/cmake/help/latest/ Searching for GLOB_RECURSE there leads to this page: https://cmake.org/cmake/help/latest/command/file.html Which is the command you are using. Docs for the command and option you are using are here: https://cmak

[CMake] Fwd: GLOB_RECURSE

2018-07-25 Thread Michael Hennebry
-- Forwarded message -- From: Michael Hennebry Date: Wed, Jul 25, 2018 at 8:55 PM Subject: Re: [CMake] GLOB_RECURSE To: Andrew Bell I'd thought I was clear. I want two lists of files, one from each of two directory trees. Maybe GLOB_RECURSE does not do that. If not, I can live w

Re: [CMake] GLOB_RECURSE

2018-07-25 Thread Andrew Bell
Michael, It's not clear what you're asking. You need to say what you're trying to achieve, your expected result, and the result that you believe incorrect. On Wed, Jul 25, 2018, 9:02 PM Michael Hennebry < michael.henne...@rivieranexus.com> wrote: > frodak wrote: > I think you want to try for abs

Re: [CMake] GLOB_RECURSE

2018-07-25 Thread Michael Hennebry
frodak wrote: I think you want to try for absolute paths: file (GLOB_RECURSE ards ./ArduinoCore/src/*.cpp ./ArduinoCore/src/*.c) file (GLOB_RECURSE apps ./SensorUnit/*.cpp ./SensorUnit/*.c) relative paths from those directories: file (GLOB_RECURSE ards RELATIVE ./ArduinoCore/src/ ./ArduinoCore/sr

Re: [CMake] GLOB_RECURSE

2018-07-25 Thread frodak
I think you want to try for absolute paths: file (GLOB_RECURSE ards ./ArduinoCore/src/*.cpp ./ArduinoCore/src/*.c) file (GLOB_RECURSE apps ./SensorUnit/*.cpp ./SensorUnit/*.c) relative paths from those directories: file (GLOB_RECURSE ards RELATIVE ./ArduinoCore/src/ ./ArduinoCore/src/*.cpp ./Ard

[CMake] GLOB_RECURSE

2018-07-25 Thread Michael Hennebry
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. The