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:gja...@googlemail.com]
Sent: January-01-16 10:14 AM
To: Kuhl, Brian; cmake@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
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake