[Insight-users] Question about CMake_CXX_Compiler

Yang, Jinzhong jinzhong76 at gmail.com
Tue Feb 2 00:52:39 EST 2010


Hi John,

Thank you very much for your message. I will upgrade my CMake to the new
version.

-Jinzhong


-----Original Message-----
From: John Drescher [mailto:drescherjm at gmail.com] 
Sent: Monday, February 01, 2010 7:03 PM
To: Yang, Jinzhong
Cc: Insight Users Mailing List
Subject: Re: [Insight-users] Question about CMake_CXX_Compiler

> I have a question regarding the compiler used for CMake-generated 
projects.
> Previously my computer is installed with MS Visual Studio 2005 only and I
> compiled ITK using VS2005. Recently I installed the MS Visual Studio 6 on
my
> computer and the problem comes up. I generate my projects that require ITK
> using CMake 2.6.4. The projects are configured to be MS Visual Studio 2005
> projects. Each time when I configure a project in CMake GUI, I will get a
> warning message:
>
> Warning: CMake is forcing CMAKE_CXX_COMPILER to "cl" to match that
>
> imported from ITK.  This is required because C++ projects must use the
>
> same compiler.  If this message appears for more than one imported
>
> project, you have conflicting C++ compilers and will have to re-build
>
> one of those projects. Was set to C:/Program Files/Microsoft
>
> Visual Studio/VC98/bin/cl.exe
>
> I checked the parameters in CMake GUI and found these parameters are
> associated with tools coming with Visual Studio 6:
>
> CMAKE_CXX_COMPILER (forced to be cl during configuration)
>
> CMAKE_C_COMPILER
>
> CMAKE_LINKER
>
> CMAKE_RC_COMPILER
>
> However, the generated projects are in the VS2005 format and I can compile
> them in VS2005 IDE without any problem. Here are my questions:
>
> 1.      Is there any way to suppress the warning message? Specifically, I
> would like the 4 parameters listed above associated with tools coming with
> Visual Studio 2005 if the project is configured as a VS2005 project.
>
> 2.      Are there any potential problems if I disregard the warning
message?
>
You can disregard the message.

I reported a bug about 6 months ago about this. I was told that even
though cmake was reporting this warning it was doing the right thing
and not using vc6. I have since upgraded to cmake-2.8.0 and I do not
remember having this anymore.

John



More information about the Insight-users mailing list