<div dir="ltr">I've been working on a relatively complicated project that uses multiple CMake modules. Some of these modules internally include other modules. The issue is, when one of my modules internally includes another module, all of the functions from the internal module become visible globally throughout my whole project!<div><br></div><div>I have written a Stack Overflow problem with a basic example demonstrating my problem:</div><div><a href="https://stackoverflow.com/questions/60626239/how-can-i-scope-a-cmake-function-so-it-cant-be-accessed-from-outside-a-file">https://stackoverflow.com/questions/60626239/how-can-i-scope-a-cmake-function-so-it-cant-be-accessed-from-outside-a-file</a> </div><div><br></div><div>Unfortunately CMake doesn't get much response on Stack Overflow so I figured I should probably send a message to the mailing list as well.<br></div><div><br></div><div>Does anyone know how to resolve this problem?</div><div><br></div><div>Thanks,</div><div>Tim</div></div>