Re: [hatari-devel] mingw-w64 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Subject: Re: [hatari-devel] mingw-w64
- From: Christer Solskogen <christer.solskogen@xxxxxxxxx>
- Date: Sat, 21 Sep 2013 09:31:17 +0200
- Cc: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=0SJz/jbGfz741nLlNS0p6w12k4PnJa0uTfnHYWixkoM=; b=GVEWU7I/3H0WrjiyanCFP4Foesd6NZLRD0lJDjLKDMZlA3L58qM7SfPOcDUkbDmnVB SF4VkJuGE2cGqyn/SqU3vB+GPKtz38Bi7BmWKSwHI8Dx3SPBbJxsc2DoYJJnTaHOzPpd Z8VHl82Py9r0UI1n7IdJXmF7d2cz5SIJMP20AsAFo7Zlpuo4oYf4PJwW/xhZ7id4NVgt klgStvTf6bRU9TtXFnI8KTsT/xCFt56R2N+z+WQQTn06rtTGeid77OSTFxsKlgH59Oey E+yGiQVO1tV84lNyxItsEKg90GKaUCjelBNolKmHwcnPT/DHFriYSEhCRdVpQizK2zUt DetA==
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,