[CMake] Add support for cross compiling to VxWorks
Kuhl, Brian
brian.kuhl at windriver.com
Fri Jan 1 23:14:24 EST 2016
Adding the library path to CMAKE_FIND_ROOT_PATH did not help :(
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH C:/git/vx7-ux-ports/workbench-4/workspace/VSB64/usr/root C:/git/vx7-ux-ports/workbench-4/workspace/VSB64/usr/libcommon C:/git/vx7-ux-ports/workbench-4/workspace/VSB64/usr/libcommon/PIC )
-----Original Message-----
From: Gregor Jasny [mailto:gjasny at googlemail.com]
Sent: January-01-16 10:14 AM
To: Kuhl, Brian; cmake at cmake.org
Subject: Re: [CMake] Add support for cross compiling to VxWorks
Hello,
please have a look at some other toolchain file like the BlackBerry one:
> https://github.com/blackberry/OGRE/blob/master/src/CMake/toolchain/blackberry.toolchain.cmake
On 30/12/15 21:38, Kuhl, Brian wrote:
> I'm trying to add support for VxWorks to CMake.
> My current dilemma is that the Compiler ID link test is failing because my library link path isn't being used, and libraries aren't being found.
> I've set the library path in all the obvious places ( or so I thought,) what setting am I missing?
I guess you should set these variables:
> # Find the Target environment
> set( CMAKE_FIND_ROOT_PATH "${CMAKE_SOURCE_DIR}" "${BLACKBERRY_TARGET_ROOT}" "${CMAKE_INSTALL_PREFIX}" "${CMAKE_INSTALL_PREFIX}/share" )
> # Search for libraries and includes in the ndk toolchain
> set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
> set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
> set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
Hope that helps,
Gregor
More information about the CMake
mailing list