Re: [hatari-devel] cmake and cross-compiling |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Subject: Re: [hatari-devel] cmake and cross-compiling
- From: Christer Solskogen <christer.solskogen@xxxxxxxxx>
- Date: Sun, 30 Dec 2012 16:25:40 +0100
- 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:content-transfer-encoding; bh=5JBS8DGNFKRcBorIr5sRO2/ovgnLUmyUrDR5PJ8n8K0=; b=MR9MC+RtAAL0HvYY4OPjjS0uxrbm1FFcx4xAfFGP7v33GKsO4QI5BgHWTYX2WFURFg W+V2hEC0Ym2EIEqKSY7mGpeLOHi9M2XaX85OC59mJy3N/LO2kM01s6qwxJIUpkXIr8fA fcPpx7JBGQbXA9+RY7jm1uIS9g+zSk2hC6At7BcCjffK/CLRg4HFcLU110FybyGbDygj yP0zIWVnmyYMLQG50r0PN1fl75/o8kPjoSbgFqZX2pPOnjck2KL4sBEvqwOPe3jQZ65K HYBXmXsZr5dlyhQ8niag7csQJ7znVNA24G1ngfgUTuJZENqsPy+oY5Xzi7SBJtcAbBG5 N1Pg==
On Sun, Dec 30, 2012 at 12:51 PM, Nicolas Pomarède
<npomarede@xxxxxxxxxxxx> wrote:
> Unless someone comes with some code to do it in cmake, I will leave it as it
> for now since anyway you need to adjust a part of the path.
>
I'm no cmake guru. I tried, but there are some concepts that I truly
don't understand.
It would be nice to get CMAKE_FIND_ROOT_PATH to be dynamic, and static.
I tried something like this (It don't work!)
EXECUTE_PROCESS (
COMMAND ${CMAKE_C_COMPILER} -print-sysroot
OUTPUT_VARIABLE CMAKE_FIND_ROOT_PATH
)
SET(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH}/mingw)
The problem is that CMAKE_FIND_ROOT_PATH becomes:
/path/to/sysroot
/mingw
I want it to be /path/to/sysroot/mingw.
--
chs,