[CMake] Implicit toolchain file usage

Laszlo Papp lpapp at kde.org
Thu Jan 17 15:38:39 EST 2013


On Thu, Jan 17, 2013 at 8:31 PM, Alexander Neundorf <a.neundorf-work at gmx.net
> wrote:

> do you mean using -DCMAKE_SYSTEM_NAME=qnx should trigger something ?
> Don't know, my experience is that cross compiling environments usually
> vary a
> lot in their setup.
>

*Current*

cmake
-DCMAKE_TOOLCHAIN_FILE="../frontends/blackberry/cmake/Toolchain-QNX-8.0.0.cmake"
-DBUILD_WIKIREADER_BLACKBERRY=ON ..

==========

*Proposed*

cmake -DBUILD_WIKIREADER_BLACKBERRY=ON ..

and

../CMakeListst.txt:
set_toolchain_file("../frontends/blackberry/cmake/Toolchain-QNX-8.0.0.cmake")

This is pseudo code, but you get my point, don't you? It would be shorter
for the developer, packager or user to use cmake.


> Can you attach your toolchain file here so we can have a look ?
>

http://quickgit.kde.org/?p=scratch%2Flpapp%2Fwikireader.git&a=blob&h=2e3e197590bfdce77ae282be840d7b167afafb94&hb=7bf46fccfa4c087500a12116588e071b1183b4e7&f=frontends%2Fblackberry%2Fcmake%2FToolchain-QNX-8.0.0.cmake

Laszlo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130117/64df5f5f/attachment.htm>


More information about the CMake mailing list