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
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
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
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.
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
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