Implement CMake load once snippet