<div dir="ltr">Hi,<div><br></div><div>Let's say I have the following directory structure:</div><div>~/Repos/MyRepo/CMakeLists.txt</div><div>~/CMakeFiles/Foo.cmake</div><div>~/CMakeFiles/Bar.cmake<br><div><br></div><div>In the CMakeLists.txt I have the following command:</div><div><br></div><div>include(~/CMakeFiles/Foo.cmake)</div><div><br></div><div>And in Foo.cmake I have the following command:</div></div><div><br></div><div>include(Bar.cmake)</div><div><br></div><div>Turns out that he `include(Bar.cmake)` from `Foo.cmake` fails. This is counter to what I would expect (e.g. how #include works in C).</div><div><br></div><div>Is this a bug or is this behavior expected? If it's expected, what is the workaround? We have a lot of common cmake files which in turn include files relative to each other and not the calling CMakeLists.txt.</div><div><br></div><div>Thank you,</div><div>Saad</div></div>