Hi, I am working to package openjpeg which uses CMake. With CMake, cross compilers are supported with specific "toolchain" files.
I have constructed such a file for Fedora MinGW, based on this: http://www.vtk.org/Wiki/CmakeMingw It would be helpful to include this file with mingw32-filesystem. Probably it should be referenced in the macros.mingw32 file as well, perhaps merging an altered version of macros.cmake. The command line argument is "-DCMAKE_TOOLCHAIN_FILE=/.../Toolchain-mingw32.cmake". Thanks, Adam
SET(CMAKE_SYSTEM_NAME Windows) # specify the cross compiler SET(CMAKE_C_COMPILER /usr/bin/i686-pc-mingw32-gcc) SET(CMAKE_CXX_COMPILER /usr/bin/i686-pc-mingw32-g++) # where is the target environment SET(CMAKE_FIND_ROOT_PATH /usr/i686-pc-mingw32/sys-root/mingw) # search for programs in the build host directories SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # for libraries and headers in the target directories SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ fedora-mingw mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw
