Re: [CMake] compiler independent compiler flags

2016-02-17 Thread Ruslan Baratov via CMake
On 17-Feb-16 17:23, Nagy-Egri Máté Ferenc via CMake wrote: Unfortunately, I cannot help you in this regard, though I am surprised how little attention this question gained. I too feel that CMake could do better both in this regard. While ABI detection is very well done, BUILD_TYPE seems to be

Re: [CMake] compiler independent compiler flags

2016-02-17 Thread 🐋 Jan Hegewald
> On 17.02.2016, at 11:23, Nagy-Egri Máté Ferenc via CMake > wrote: > > Sorry I could not help, but I do feel the struggle. LOL, yes. Struggle might be the right term. Best, Jan -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wi

Re: [CMake] compiler independent compiler flags

2016-02-17 Thread Petr Kmoch
l > C++ compilers and it would rock if I need not look up the exact params for > all of them. > > > > Sorry I could not help, but I do feel the struggle. > > > > Cheers, > > Máté > > > > *Feladó: *🐋 Jan Hegewald > *Elküldve: *2016. február 5.,

Re: [CMake] compiler independent compiler flags

2016-02-17 Thread Nagy-Egri Máté Ferenc via CMake
, Máté Feladó: 🐋 Jan Hegewald Elküldve: 2016. február 5., péntek 11:36 Címzett: cmake@cmake.org Tárgy: [CMake] compiler independent compiler flags Dear all, do you know a best practice on how to specify compiler flags without knowing in advance which compiler will be used? Its about Fortran

[CMake] compiler independent compiler flags

2016-02-05 Thread 🐋 Jan Hegewald
Dear all, do you know a best practice on how to specify compiler flags without knowing in advance which compiler will be used? Its about Fortran projects, where I e.g. want to explicitly enable the preprocessor, or make all default real values 8 byte wide. This could be done as such: if(${CMAKE_