<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 08.01.0390.000">
<TITLE>Question about CMake_CXX_Compiler</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hi All,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">I have a question regarding the compiler used for</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">CMak</FONT><FONT FACE="Calibri">e</FONT><FONT FACE="Calibri">-generated projects.</FONT> <FONT FACE="Calibri">Previously my computer is installed with MS Visual Studio 2005 only</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> and I compiled ITK using VS2005.</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">Recently I installed</FONT> <FONT FACE="Calibri">the</FONT> <FONT FACE="Calibri">MS Visual Studio 6</FONT> <FONT FACE="Calibri">on</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">my</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> computer</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> and the problem comes up</FONT></SPAN><SPAN LANG="en-us">.<FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">I gener</FONT><FONT FACE="Calibri">ate my</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">project</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">s</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">that require</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> ITK</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> using CMake 2.6.4</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">. The project</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">s are</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> configured</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">to be</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT> <FONT FACE="Calibri">MS Visual Studio 2005</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> project</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">s</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">. Each time when I configure</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT> <FONT FACE="Calibri">a project in CMake GUI, I will get a warning message:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Warning: CMake is forcing CMAKE_CXX_COMPILER to "cl" to match that</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">imported from ITK. This is required because C++ projects must use the</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">same compiler. If this message appears for more than one imported</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">project, you have conflicting C++ compilers and will have to re-build</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">one of those projects. Was set to</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New"></FONT></SPAN><SPAN LANG="en-us"> <FONT SIZE=2 FACE="Courier New">C:/Program Files/Microsoft</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Visual Studio/VC</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">98</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">/bin/cl.exe</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">I checked</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">the parameters</FONT><FONT FACE="Calibri"> in CMake GUI and found these parameters are</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">associated</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">with</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> tools coming with</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> Visual Studio 6:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">CMAKE_CXX_COMPILER (forced to be cl</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> during configuration)</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">CMAKE_C_COMPILER</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">CMAKE_LINKER</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">CMAKE_RC_COMPILER</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">However, th</FONT><FONT FACE="Calibri">e generated projects are in the VS2005 format and I can compile them in VS2005 IDE without an</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">y prob</FONT><FONT FACE="Calibri">lem. Here are my questions:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">1. </FONT></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">Is there any way to</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">suppress</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT> <FONT FACE="Calibri">the w</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">arning message</FONT><FONT FACE="Calibri">? Specifically, I would like the 4 parameters listed above associated with</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> tools coming with Visual Studio 2005</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">if</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> the project is configured as a</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> VS2005 pro</FONT><FONT FACE="Calibri">ject.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">2. </FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">Are there any potential</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">problems</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT> <FONT FACE="Calibri">if I disregard the warning message?</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Thanks in advance.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Jinzhong</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT></SPAN><SPAN LANG="en-us"> </SPAN></P>
</BODY>
</HTML>