summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2015-10-15 22:19:13 +1100
committerMichael Palimaka <kensington@gentoo.org>2015-10-15 22:24:36 +1100
commitd09e4e1ff25830792c9201ba5e52516cfe008b25 (patch)
treea2d9fc3e87f4f299291ae32fda5b33452ed5da04 /eclass/cmake-utils.eclass
parentsys-kernel/hardened-sources: version bump 4.2.3-r3 (diff)
downloadgentoo-d09e4e1ff25830792c9201ba5e52516cfe008b25.tar.gz
gentoo-d09e4e1ff25830792c9201ba5e52516cfe008b25.tar.bz2
gentoo-d09e4e1ff25830792c9201ba5e52516cfe008b25.zip
cmake-utils.eclass Set CMAKE_RC_COMPILER for Windows builds
Gentoo-bug: 544662
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 9e2b0886b7c3..8ec0fa6adb82 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -480,7 +480,12 @@ enable_cmake-utils_src_configure() {
Cygwin) sysname="CYGWIN_NT-5.1" ;;
HPUX) sysname="HP-UX" ;;
linux) sysname="Linux" ;;
- Winnt) sysname="Windows" ;;
+ Winnt)
+ sysname="Windows"
+ cat >> "${toolchain_file}" <<- _EOF_ || die
+ SET (CMAKE_RC_COMPILER $(tc-getRC))
+ _EOF_
+ ;;
*) sysname="${KERNEL}" ;;
esac