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-boun...@cmake.org] On Behalf Of 
cmake-requ...@cmake.org
Sent: Monday, September 19, 2016 10:00 AM
To: cmake@cmake.org
Subject: CMake Digest, Vol 149, Issue 25

Send CMake mailing list submissions to
        cmake@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-requ...@cmake.org

You can reach the person managing the list at
        cmake-ow...@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.da...@gmail.com>
To: Maciej Mrozowski <reave...@gmail.com>
Cc: cmake@cmake.org
Subject: Re: [CMake] Include directories problem when cross compiling
        with    MinGW
Message-ID:
        <cao+pfdcgjmxvpbpkm8jtlnrxapeg2gojai0x-zjvcw0uhp4...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

2016-09-12 23:22 GMT+02:00 Maciej Mrozowski <reave...@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.kolo...@voiceinterconnect.de>
To: "Gunter, Walter E" <walter.gun...@dematic.com>, Dave Flogeras
        <dfloger...@gmail.com>, "cmake@cmake.org" <cmake@cmake.org>
Subject: Re: [CMake] is it worth using cmake to cross-compile for
        embedded arm device?
Message-ID:
        <6c4eedf3-ba45-6fe6-ebea-71be5da3b...@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.schu...@gmail.com>
To: cmake@cmake.org
Subject: [CMake] Correct way to use ARMCC (Files in
        Modules/Compiler/ARMCC*)
Message-ID:
        <CAEHCvav8y0DAdfU7N=gpm8gzzvtp2rfws-sbdbaux6jzts_...@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
**************************************
-- 

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

Reply via email to