Re: [hatari-devel] mingw-w64

[ Thread Index | Date Index | More Archives ]


On lauantai 21 syyskuu 2013, Christer Solskogen wrote:
> <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:
> It does not work.

Redefining a variable seems bad practice to me.

What if such redefining is done in multiple places, and
order of those happens to change?

> 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:
> get_filename_component ( CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH}
> Does that work for you?

I haven't looked into this at all, but what if you add variable for
specifying compiler root path, in case it differs from standard one used
by CMake, and document that for compilers needing it?

Or does Hatari CMake already support that?

	- Eero

Mail converted by MHonArc 2.6.19+