Re: [CMake] Change compiler for certain files in the project

2017-10-30 Thread Aaron Boxer
On Mon, Oct 30, 2017 at 11:18 AM, Thompson, KT wrote: > Aaron, > > Another way to do this is by using external project, but it is very > 'hacky'. A good place to look for examples is CMake's own > AddCMakeFortranSubdirectory features. This is designed to allow Fortran to > be compiled with MinG

Re: [CMake] Change compiler for certain files in the project

2017-10-30 Thread Aaron Boxer
On Sat, Oct 28, 2017 at 11:22 AM, P F wrote: > > > On Oct 28, 2017, at 9:50 AM, Aaron Boxer wrote: > > > > Hello, > > > > I have a cmake project on linux, and I would like to change the compiler > > for certain files from g++ to another, llvm-based compiler called hcc. > > (hcc is AMDs HIP comp

[CMake] Problem with forced response files (Ninja)

2017-10-30 Thread Gößwein Matthias / eeas gmbh
Hello, I'm currently trying to add support for the Tasking Compiler to CMake. Actually i have a working solution (without response files), but if i want to use response files, then i have a problem. The Tasking compiler expects "-f" as a flag instead of "@". I use the ninja generator and have se

Re: [CMake] print path variables within submodules?

2017-10-30 Thread Carlton Banks
Hmm.. That worked.. I don’t know sometimes it does not work.. weird.. > Den 30. okt. 2017 kl. 22.25 skrev Gonzalo Garramuño : > > > > El 30/10/17 a las 14:59, Carlton Banks escribió: >>> Den 30. okt. 2017 kl. 16.53 skrev Gonzalo Garramuño : >>> >>> >>> >>> El 29/10/17 a las 09:02, Carlton

Re: [CMake] print path variables within submodules?

2017-10-30 Thread Gonzalo Garramuño
El 30/10/17 a las 14:59, Carlton Banks escribió: Den 30. okt. 2017 kl. 16.53 skrev Gonzalo Garramuño : El 29/10/17 a las 09:02, Carlton Banks escribió: I am using submodule cmake, in which the relative paths becomes a bit more confusing that I would have hoped. Is there a way to print the

Re: [CMake] print path variables within submodules?

2017-10-30 Thread Carlton Banks
> Den 30. okt. 2017 kl. 16.53 skrev Gonzalo Garramuño : > > > > El 29/10/17 a las 09:02, Carlton Banks escribió: >> I am using submodule cmake, in which the relative paths becomes a bit more >> confusing that I would have hoped. >> >> Is there a way to print the path like ${source_dir} and so

Re: [CMake] print path variables within submodules?

2017-10-30 Thread Gonzalo Garramuño
El 29/10/17 a las 09:02, Carlton Banks escribió: I am using submodule cmake, in which the relative paths becomes a bit more confusing that I would have hoped. Is there a way to print the path like ${source_dir} and so on within the CMAKElist, so I can keep track of the paths defined? I trie

Re: [CMake] Change compiler for certain files in the project

2017-10-30 Thread Thompson, KT
Aaron, Another way to do this is by using external project, but it is very 'hacky'. A good place to look for examples is CMake's own AddCMakeFortranSubdirectory features. This is designed to allow Fortran to be compiled with MinGW when the main project uses a VisualStudio generator. The same

Re: [CMake] print path variables within submodules?

2017-10-30 Thread Nicholas Devenish
Hi Carlton, On Sun, Oct 29, 2017 at 12:02 PM, Carlton Banks wrote: > > Is there a way to print the path like ${source_dir} and so on within the > CMAKElist, so I can keep track of the paths defined? I found understanding exactly what you are asking for a little unclear, but possibly you are loo

[CMake] SWIG out of place comprehension

2017-10-30 Thread Michael Powell
Hello, I've been working on some SWIG Interface (.i) files that are basically working and gen-ing up target language source. I've also got some complementary source that I want to incorporate into a target language target language library. >From what I understand CMake does offer SWIG support. B