Re: [hatari-devel] mingw-w64

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Sat, Sep 21, 2013 at 8:26 AM, Christer Solskogen
<christer.solskogen@xxxxxxxxx> wrote:
> The reason why I'm so certain that the problem is cmake is the fact
> that cmake have no trouble finding libSDL. It finds libSDL even
> without setting the hint.
>

Heh, this is wierd.
If I use this:
SET (CMAKE_FIND_ROOT_PATH /opt/cross-mingw-w64/x86_64-w64-mingw32)

It works.

If I do like this:
SET(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH}/x86_64-w64-mingw32)

It does not work.

The difference between this are:
/opt/cross-mingw-w64/x86_64-w64-mingw32
/opt/cross-mingw-w64/bin/../../cross-mingw-w64/x86_64-w64-mingw32

And this is exactly the same directory.


So I worked it out like this:

SET(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH}/x86_64-w64-mingw32)
get_filename_component ( CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ABSOLUTE )

Does that work for you?

-- 
chs,



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/