[CMake] Fedora 11 and mingw32
Hendrik Sattler
post at hendrik-sattler.de
Sun Jul 5 15:23:39 EDT 2009
Am Sonntag 05 Juli 2009 19:36:44 schrieb dulsi at identicalsoftware.com:
> mingw32-SDL is installed. Looking at the FindSDL.cmake and the
> CMAKE_FIND_ROOT_PATH directory I can see why it doesn't find it. The
> /usr/i686-pc-mingw32 directory has bin, lib, and sys-root. In
> sys-root/mingw, you have bin, include, lib, and share. The FIND_PATH
> in FindSDL.cmake is obviously not looking in
> sys-root/mingw/include/SDL. Has anyone used mingw, SDL and cmake on
> Fedora? I don't see how you can configure that to pass.
Why should it. You obviously have an incomplete root path in your toolchain
file. Please note that CMAKE_FIND_ROOT_PATH is a _list_. In your case, you must
add /usr/i686-pc-mingw32/sys-root/mingw.
You may also have to call include_directories() for all standard include paths
in your root paths.
HS
More information about the CMake
mailing list