Re: [CMake] Implicit toolchain file usage
On Thu, Jan 17, 2013 at 8:43 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 17 January 2013, Laszlo Papp wrote: On Thu, Jan 17, 2013 at 8:31 PM, Alexander Neundorf a.neundorf-w...@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.c make -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.gita=blobh=2e3e19 7590bfdce77ae282be840d7b167afafb94hb=7bf46fccfa4c087500a12116588e071b1183b 4e7f=frontends%2Fblackberry%2Fcmake%2FToolchain-QNX-8.0.0.cmake oh, this is definitely more than what should be necessary. Why do you have to set all the suffixes and prefixes ? I will clean it up later once the project works for an initial release. This should go into Platforms/QNX.cmake. Manually setting CMAKE_AR etc. should also not be necessary, this should also go into QNX.cmake or QNX-qcc.cmake or somewhere like this. Feel free to get anything upstreamed from my file. The specific build flags are your choice. I see. It means I can avoid the -DCMAKE_TOOLCHAIN_FILE in the end of the day. Thank you for your reply. Laszlo -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] Implicit toolchain file usage
Hi, I have been pondering for a while if it was possible (theoritically, and then practically) to get the toolchain fine defined inside one (main?) of the cmake files? I have been using the -DCMAKE_TOOLCHAIN_FILE=my-toolchain-file.cmake option, but I think this can become duplicated easily. That is because most of the time the developers, packagers, or users may have to define the platform to build for on the command line anyway. Hence, the toolchain file detection and usage could be implicit. I have also imported my toolchain file into the project because it is a very short file, and really not a big burden. I understand that the toolchain files are specified by this file, so this should be put into an early stage of the build procedure for sure. Otherwise, everyone has to deal with it separately, which is undesirable, I believe. Sometimes, it may make sense to customize this on your own, but there could be a fallback provided by the project developers implicitly inside the build system of the given project. I think, this would be a great thing to have. Is it already available now like just simple define (implicit equivalence of the -D) or so? Laszlo -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Implicit toolchain file usage
On Thu, Jan 17, 2013 at 8:31 PM, Alexander Neundorf a.neundorf-w...@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.gita=blobh=2e3e197590bfdce77ae282be840d7b167afafb94hb=7bf46fccfa4c087500a12116588e071b1183b4e7f=frontends%2Fblackberry%2Fcmake%2FToolchain-QNX-8.0.0.cmake Laszlo -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Implicit toolchain file usage
On Thursday 17 January 2013, Laszlo Papp wrote: On Thu, Jan 17, 2013 at 8:31 PM, Alexander Neundorf a.neundorf-w...@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.c make -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.gita=blobh=2e3e19 7590bfdce77ae282be840d7b167afafb94hb=7bf46fccfa4c087500a12116588e071b1183b 4e7f=frontends%2Fblackberry%2Fcmake%2FToolchain-QNX-8.0.0.cmake oh, this is definitely more than what should be necessary. Why do you have to set all the suffixes and prefixes ? This should go into Platforms/QNX.cmake. Manually setting CMAKE_AR etc. should also not be necessary, this should also go into QNX.cmake or QNX-qcc.cmake or somewhere like this. The specific build flags are your choice. Alex -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake