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!
I have written a Stack Overflow problem with a basic example demonstrating my problem: https://stackoverflow.com/questions/60626239/how-can-i-scope-a-cmake-function-so-it-cant-be-accessed-from-outside-a-file 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. Does anyone know how to resolve this problem? Thanks, Tim
-- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each offering, please visit https://cmake.org/services Visit other Kitware open-source projects at https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in favor of https://discourse.cmake.org