When cross-compiling a CMake project, cmake-utils.eclass creates an appropriate toolchain file which specifies CC, CXX, and so forth. When compiling for Windows (e.g. x86_64-w64-mingw32 target), CMake needs to know about CMAKE_RC_COMPILER, which is not set in the toolchain file. Reproducible: Always Actual Results: CMAKE_RC_COMPILER is unset Expected Results: CMAKE_RC_COMPILER should contain the full path to the windres executable.
Created attachment 399876 [details, diff] cmake-utils.eclass-cmake-rc-compiler.patch Sets CMAKE_RC_COMPILER, if the KERNEL is "Winnt".
CCing prefix if they have any comment.
Seems like the prefix project does not have any comments :)
nope, looks ok to me
In overlay: https://gitweb.gentoo.org/proj/kde.git/commit/?id=9f31193e80fb5ea68e7112b7378be37afc00cf80
Great, thanks!
(In reply to Michael Palimaka (kensington) from comment #5) > In overlay: > https://gitweb.gentoo.org/proj/kde.git/commit/ > ?id=9f31193e80fb5ea68e7112b7378be37afc00cf80 Can we move it to the tree?
(In reply to Johannes Huber from comment #7) > Can we move it to the tree? I guess so.
Thanks, fixed in git. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d09e4e1ff25830792c9201ba5e52516cfe008b25