# correct usage of CMP0011

**URL:** https://discourse.cmake.org/t/correct-usage-of-cmp0011/7965
**Category:** Usage
**Created:** [April 24, 2023, 10:21am UTC](https://discourse.cmake.org/t/correct-usage-of-cmp0011/7965 "2023-04-24T10:21:57Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [April 27, 2023, 9:22am UTC](https://discourse.cmake.org/t/correct-usage-of-cmp0011/7965/3 "2023-04-27T09:22:13Z")

</div>

Hi,

In my use case, the main CMakeLists does `cmake_policy(VERSION x.y)` but it seems that a delegated cmake script does not inherite it (see use-case in [using read -p from in script launched by execute\_process](https://discourse.cmake.org/t/using-read-p-from-in-script-launched-by-execute-process/7941)).

Thanks

---

_[View the full topic](https://discourse.cmake.org/t/correct-usage-of-cmp0011/7965)._
