diff options
author | Michael Palimaka <kensington@gentoo.org> | 2015-10-15 22:19:13 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2015-10-15 22:24:36 +1100 |
commit | d09e4e1ff25830792c9201ba5e52516cfe008b25 (patch) | |
tree | a2d9fc3e87f4f299291ae32fda5b33452ed5da04 /eclass/cmake-utils.eclass | |
parent | sys-kernel/hardened-sources: version bump 4.2.3-r3 (diff) | |
download | gentoo-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.eclass | 7 |
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 |