I'm not sure how this would work, or if it's technically feasible, but I'm going to describe my issue through a hypothetical project.
Let's assume we have projects A and B. Project A depends on project B and pulls it in with CPM.
Both projects use Format.cmake; project A does not allow Cmake formatting, but project B does have that enabled.
Right now, when running "check-format" from project A, it will always fail because Format.cmake thinks that the CMakeLists files need to be formated even though FORMAT_SKIP_CMAKE is set to YES in project A.
Is there any way to work around this?