Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-10 Thread janitor 048
Thank you so much for the hint. Setting the environment variable CXX from within my CMakeLists.txt via SET(ENV{CXX} icpc) but before any call to project() or enable_language() seems indeed to do the trick. Setting CMAKE_CXX_FLAGS_RELEASE or CMAKE_CXX_FLAGS_DEBUG at this stage however does not

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-10 Thread Rolf Eike Beer
Thank you so much for the hint. Setting the environment variable CXX from within my CMakeLists.txt via SET(ENV{CXX} icpc) but before any call to project() or enable_language() seems indeed to do the trick. Setting CMAKE_CXX_FLAGS_RELEASE or CMAKE_CXX_FLAGS_DEBUG at this stage however does

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-09 Thread Michael Hertling
On 02/07/2012 02:43 PM, janitor 048 wrote: Hello, this is a question I recently asked on stackoverflow ( http://stackoverflow.com/questions/9129233/recommended-ways-to-use-cmake-with-icc-via-configuration-options) but that has not received any response since then. Maybe this mailing list is

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-08 Thread Yuri Timenkov
I think this could work, but if compiler is altered before project() call (but I didn't check this and suggest set variable only if it's not already set). Specifying only one variable in command line looks more user-friendly and robust than several ones. Anther option is using initial cache.

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-07 Thread Michael Jackson
Not sure that is really going to work because by the time CMake has parsed your option code the compiler (and who knows how many other internal variables) has already been set. -- Mike Jackson www.bluequartz.net On Feb 7, 2012, at 8:43 AM, janitor 048 wrote: Hello, this is a question I

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-07 Thread Alexander Neundorf
Hi Janitor, On Tuesday 07 February 2012, janitor 048 wrote: Hello, this is a question I recently asked on stackoverflow ( http://stackoverflow.com/questions/9129233/recommended-ways-to-use-cmake-wi th-icc-via-configuration-options) but that has not received any response since then. Maybe