# set the resource.rc file

**URL:** <https://discourse.cmake.org/t/set-the-resource-rc-file/12925>\
**Category:** Code\
**Tags:** os:windows\
**Created:** [November 9, 2024, 1:28pm UTC](https://discourse.cmake.org/t/set-the-resource-rc-file/12925 "2024-11-09T13:28:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sea\_Sea](https://discourse.cmake.org/user_avatar/discourse.cmake.org/sea_sea/32/4025_2.png) [@Sea\_Sea](https://discourse.cmake.org/u/Sea_Sea)\
**Post date:** [November 9, 2024, 1:28pm UTC](https://discourse.cmake.org/t/set-the-resource-rc-file/12925/1 "2024-11-09T13:28:31Z")

</div>

How does the EXAMPLE\_RESOURCES\_SRCS\_WINDOWS work?  
The code just set the varibale and it was only used on here.  
If I comment the win/resource.rc, it will build fail.

> <https://github.com/chromiumembedded/cef-project/blob/c3104bd6ab3fce9551edd4d74ed575605f37f4a0/examples/minimal/CMakeLists.txt#L40C5-L45C35>
