[CMake] Add support for cross compiling to VxWorks

Gregor Jasny gjasny at googlemail.com
Fri Jan 1 13:14:09 EST 2016


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