CMAKE__IGNORE_EXTENSIONS

From Get docs
Cmake/docs/3.21/variable/cmake lang ignore extensions


CMAKE__IGNORE_EXTENSIONS

File extensions that should be ignored by the build.

This is a list of file extensions that may be part of a project for a given language but are not compiled.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_LANG_IGNORE_EXTENSIONS.html