# wx/msw/hand.cur not found

**URL:** https://discourse.cmake.org/t/wx-msw-hand-cur-not-found/4631
**Category:** Code
**Tags:** os:windows
**Created:** [December 9, 2021, 9:49am UTC](https://discourse.cmake.org/t/wx-msw-hand-cur-not-found/4631 "2021-12-09T09:49:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mauro\_Ziliani](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mauro_ziliani/32/2018_2.png) [@Mauro\_Ziliani](https://discourse.cmake.org/u/Mauro_Ziliani)
#### Post date: [December 9, 2021, 9:49am UTC](https://discourse.cmake.org/t/wx-msw-hand-cur-not-found/4631/1 "2021-12-09T09:49:52Z")

</div>

Hi all.  
I try to compile with MinGW 8.1.0 an app based on wx 3.1.5.

I get the following error.

C:\Qt\Tools\mingw810\_32\bin\windres.exe: can’t open cursor file `wx/msw/hand.cur’: Permission denied

This is the verbose line  
C:\Qt\Tools\mingw810\_32\bin\windres.exe -O coff -DUNICODE -D\_CRT\_SECURE\_NO\_WARNINGS -D\_UNICODE -I C:\Palm\v238\src -I C:\Palm\v238\src\missing -I C:\wxWidgets\3.1.5\lib\gcc\_lib\mswud **-I C:\wxWidgets\3.1.5\include** C:\Palm\v238\src\smartgas.rc CMakeFiles\smartgas.dir\smartgas.rc.obj

The problem is about -I paths.

If I put **-I C:\wxWidgets\3.1.5\include** as fist -I option the obj file is produced

C:\Qt\Tools\mingw810\_32\bin\windres.exe -O coff -DUNICODE -D\_CRT\_SECURE\_NO\_WARNINGS -D\_UNICODE **-I C:\wxWidgets\3.1.5\include** -I C:\Palm\v238\src -I C:\Palm\v238\src\missing -I C:\wxWidgets\3.1.5\lib\gcc\_lib\mswud C:\Palm\v238\src\smartgas.rc CMakeFiles\smartgas.dir\smartgas.rc.obj

I’d like to put **-I C:\wxWidgets\3.1.5\include** as first oprion for windres.  
I play with CMAKE\_RC\_FLAGS but I don’t achieve this.

Which is the right cmake variabile to modify to put **-I C:\wxWidgets\3.1.5\include** as first option for windres?

Best regards,  
MZ

---

<div class="post-metadata">

### Author: ![Mauro\_Ziliani](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mauro_ziliani/32/2018_2.png) [@Mauro\_Ziliani](https://discourse.cmake.org/u/Mauro_Ziliani)
#### Post date: [December 9, 2021, 5:39pm UTC](https://discourse.cmake.org/t/wx-msw-hand-cur-not-found/4631/2 "2021-12-09T17:39:43Z")

</div>

Hi all.  
I found the solution to my problem.

I use set\_property on app.rc

set\_property(SOURCE app.rc PROPERTY INCLUDE\_DIRECTORIES ${wxWidgets\_ROOT\_DIR}/include)

I get just one -I option, as I need

MZ
