# Should NO\_SET\_AND\_CHECK\_MACRO and NO\_CHECK\_REQUIRED\_COMPONENTS\_MACRO be used with configure\_package\_config\_file?

**URL:** https://discourse.cmake.org/t/should-no-set-and-check-macro-and-no-check-required-components-macro-be-used-with-configure-package-config-file/11575
**Category:** Usage
**Created:** [September 3, 2024, 12:43pm UTC](https://discourse.cmake.org/t/should-no-set-and-check-macro-and-no-check-required-components-macro-be-used-with-configure-package-config-file/11575 "2024-09-03T12:43:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![adaldev](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/9dc877/32.png) [@adaldev](https://discourse.cmake.org/u/adaldev)
#### Post date: [September 3, 2024, 12:43pm UTC](https://discourse.cmake.org/t/should-no-set-and-check-macro-and-no-check-required-components-macro-be-used-with-configure-package-config-file/11575/1 "2024-09-03T12:43:16Z")

</div>

CMake tutorials uses these options but I can’t find documented motivation to do so. It seems to me that additional checks should be for the best.

What is the recommended best practice and why?

Regards  
A.
