Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=652435
Laurent Rineau <laurent.rineau__fedora(a)normalesup.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |laurent.rineau__fedora@norm
| |alesup.org
--- Comment #5 from Laurent Rineau <laurent.rineau__fedora(a)normalesup.org>
2011-10-28 10:34:18 EDT ---
With the commited patch, Orion did you manage to use the RC compiler properly?
After the CMake configuration is done successfully, I have errors like:
/usr/bin/i686-pc-mingw32-windres: can't open
`/foCMakeFiles/CGAL.dir/CGAL_verinfo.rc.res' for input
because CMake tries the option /fo (the syntax of Microsoft rc.exe) instead of
the option -o (syntax of windres).
And I add also to add the option "-O coff" so that the linker agrees to link
with the generated file.
So my patch is:
diff --git a/Toolchain-mingw32.cmake b/Toolchain-mingw32.cmake
index 66ef563..f965ce5 100644
--- a/Toolchain-mingw32.cmake
+++ b/Toolchain-mingw32.cmake
@@ -20,6 +20,8 @@ SET(QT_LIBRARY_DIR ${CMAKE_FIND_ROOT_PATH}/lib)
# set the resource compiler (RHBZ #652435)
SET(CMAKE_RC_COMPILER /usr/bin/i686-pc-mingw32-windres)
+SET(CMAKE_RC_COMPILE_OBJECT
+ "<CMAKE_RC_COMPILER> <FLAGS> <DEFINES> -O coff -o
<OBJECT> <SOURCE>")
# override boost library suffix which defaults to -mgw
SET(Boost_COMPILER -gcc46)
My packages are:
mingw32-filesystem-64-2.fc14.noarch
cmake-2.8.4-1.fc14.x86_64
--
Configure bugmail:
https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.