[CMake] Correct way to use ARMCC (Files in Modules/Compiler/ARMCC*)
Gunter, Walter E
Walter.Gunter at dematic.com
Mon Sep 19 20:43:03 EDT 2016
I am not 100% certain with all this cmake, but it does seem to appear that two things need to happen:
1. Toolchain needs to be in a separate file
2. That file needs to be called before the project line of your CMakeLists.txt
I put the same exact commands in the CMakeLists.txt that I ended up putting into my myhardtoolchain.cmake file, and it didn't work.
As soon, as I made the change to put the commands in the separate file, magic happened.
Hope that helps.
Walter
-----Original Message-----
From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of cmake-request at cmake.org
Sent: Monday, September 19, 2016 10:00 AM
To: cmake at cmake.org
Subject: CMake Digest, Vol 149, Issue 25
Send CMake mailing list submissions to
cmake at cmake.org
To subscribe or unsubscribe via the World Wide Web, visit
http://public.kitware.com/mailman/listinfo/cmake
or, via email, send a message with subject or body 'help' to
cmake-request at cmake.org
You can reach the person managing the list at
cmake-owner at cmake.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of CMake digest..."
Today's Topics:
1. Re: Include directories problem when cross compiling with
MinGW (David Demelier)
2. Re: is it worth using cmake to cross-compile for embedded arm
device? (Uwe Koloska)
3. Correct way to use ARMCC (Files in Modules/Compiler/ARMCC*)
(Marco Schuler)
----------------------------------------------------------------------
Message: 1
Date: Mon, 19 Sep 2016 10:22:53 +0200
From: David Demelier <demelier.david at gmail.com>
To: Maciej Mrozowski <reavertm at gmail.com>
Cc: cmake at cmake.org
Subject: Re: [CMake] Include directories problem when cross compiling
with MinGW
Message-ID:
<CAO+PfDcGJMXVpbPKm8JTLnrXapEG2GoJai0x-zJvCw0UHp4wwQ at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
2016-09-12 23:22 GMT+02:00 Maciej Mrozowski <reavertm at gmail.com>:
> On pi?tek, 2 wrze?nia 2016 13:12:27 CEST David Demelier wrote:
>
>> Do you have any clue?
>
> It seems your toolchain does not have include/library path built-in or
> they are different that those it was built with.
After some discuss with ngladitz, we discovered some troubles between gcc 6 and CMake which both have safety guards. We finally added CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES as workaround in our MinGW scripts and it works fine at the moment.
Thanks for feedback :)
--
Demelier David
------------------------------
Message: 2
Date: Mon, 19 Sep 2016 11:16:13 +0200
From: Uwe Koloska <uwe.koloska at voiceinterconnect.de>
To: "Gunter, Walter E" <Walter.Gunter at dematic.com>, Dave Flogeras
<dflogeras2 at gmail.com>, "cmake at cmake.org" <cmake at cmake.org>
Subject: Re: [CMake] is it worth using cmake to cross-compile for
embedded arm device?
Message-ID:
<6c4eedf3-ba45-6fe6-ebea-71be5da3b227 at voiceinterconnect.de>
Content-Type: text/plain; charset=windows-1252
On 17.09.2016 00:11, Gunter, Walter E wrote:
> Okay?that made a huge difference.
Just a silly question: Where have been the commands that you now have
moved to the toolchain file? Before or after project()?
For project() triggers the process of finding the compiler etc. and I'm
not sure wether it uses variables defined after it.
Uwe
------------------------------
Message: 3
Date: Mon, 19 Sep 2016 16:21:31 +0200
From: Marco Schuler <marco.schuler at gmail.com>
To: cmake at cmake.org
Subject: [CMake] Correct way to use ARMCC (Files in
Modules/Compiler/ARMCC*)
Message-ID:
<CAEHCvav8y0DAdfU7N=gpM8GZzvtp2rFWs-SbDBaUx6jZTs_Bdg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hello
While investigating on how I can use cmake to build my embedded targets
(cortex m3), I struggled over the the files in Modules/Compiler/
(distributed with cmake installation). There seems to be native support for
my armcc compiler.
However, I could not find any information on how to properly use these
files. Do I have to provide ARMCC.cmake to cmake as toolchain file? Do I
use them in my toolchain file? In my CMakeLists.txt? Is the documantation
"cmake-toolchain(7)" related to it?
Any directions and hint on how to use these files are highly appreciated!
Many thanks in advance!
--
Cheers,
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160919/37d5783f/attachment-0001.html>
------------------------------
Subject: Digest Footer
--
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
------------------------------
End of CMake Digest, Vol 149, Issue 25
**************************************
More information about the CMake
mailing list