<div dir="ltr">
<div>I think you want to try for absolute paths:<br></div><div>
file (GLOB_RECURSE ards ./ArduinoCore/src/*.cpp 
./ArduinoCore/src/*.c)<br>
file (GLOB_RECURSE apps ./SensorUnit/*.cpp 
./SensorUnit/*.c)</div><div><br></div><div>relative paths from those directories:<br></div><div>
file (GLOB_RECURSE ards RELATIVE 
./ArduinoCore/src/

 ./ArduinoCore/src/*.cpp 
./ArduinoCore/src/*.c)<br>
file (GLOB_RECURSE apps RELATIVE 
./SensorUnit/

./SensorUnit/*.cpp 
./SensorUnit/*.c)

<br></div><div><br></div>

<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 25, 2018 at 6:47 PM, Michael Hennebry <span dir="ltr"><<a href="mailto:michael.hennebry@rivieranexus.com" target="_blank">michael.hennebry@rivieranexus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Emphasis on curse.<br>
<br>
from CMakeLists.txt:<br>
<br>
file (GLOB_RECURSE ards ./ArduinoCore/src *.cpp *.c)<br>
file (GLOB_RECURSE apps ./SensorUnit *.cpp *.c)<br>
<br>
message("apps:;${apps};:apps")<br>
message("ards:;${ards};:ards")<br>
<br>
Both lists have ArduinoCore and SensorUnit sources.<br>
They both have precisely 57 entries.<br>
They both have three entries from sb-build.<br>
<br>
What is going on?<br>
<br>
>From the siblings' parent:<br>
$ ls -F<br>
ArduinoCore/    SensorUnit/              generic-gcc-avr.cmake<br>
CMakeLists.txt  from-build-directory.sh  sb-build/<br>
<br>
I tried RELATIVE.<br>
I tried replacing the dot with ${CMAKE_SOURCE_DIR}.<br>
All to no avail.<br>
<br>
I'm stumped.<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/<wbr>listinfo/cmake</a><br>
</blockquote></div><br></div>