diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-10-15 04:28:10 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-10-15 23:56:40 (GMT) |
commit | ec6653705aad5eec057d3ca1c273c0c436aaa81e (patch) | |
tree | 0ce9f0d2da41221020a36e7dfd8f6dae6de15504 /src | |
parent | 9ebd3cedf73178a73a06d94bd3c69ad604de8000 (diff) | |
download | mxe-ec6653705aad5eec057d3ca1c273c0c436aaa81e.zip mxe-ec6653705aad5eec057d3ca1c273c0c436aaa81e.tar.gz mxe-ec6653705aad5eec057d3ca1c273c0c436aaa81e.tar.bz2 |
mxe-conf.cmake: Workaround buggy windres rules
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/pkgconf.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkgconf.mk b/src/pkgconf.mk index 55c9cf5..1b6d516 100644 --- a/src/pkgconf.mk +++ b/src/pkgconf.mk @@ -62,8 +62,9 @@ define $(PKG)_BUILD_COMMON echo 'set(CMAKE_MODULE_PATH $(PWD)/src/cmake) # For mxe FindPackage scripts'; \ echo 'set(CMAKE_INSTALL_PREFIX $(PREFIX)/$(TARGET) CACHE PATH "Installation Prefix")'; \ echo 'set(CMAKE_BUILD_TYPE Release CACHE STRING "Debug|Release|RelWithDebInfo|MinSizeRel")'; \ - echo 'set(CMAKE_CROSS_COMPILING ON) # Workaround for http://www.cmake.org/Bug/view.php?id=14075') \ - > '$(CMAKE_TOOLCHAIN_FILE)' + echo 'set(CMAKE_CROSS_COMPILING ON) # Workaround for http://www.cmake.org/Bug/view.php?id=14075'; \ + echo 'set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff <FLAGS> <DEFINES> -o <OBJECT> <SOURCE>") # Workaround for buggy windres rules'; \ + ) > '$(CMAKE_TOOLCHAIN_FILE)' endef define $(PKG)_BUILD |