wx/msw/hand.cur not found

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,

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