[Insight-users] Question about CMake_CXX_Compiler
Yang, Jinzhong
jinzhong76 at gmail.com
Mon Feb 1 19:16:32 EST 2010
Hi All,
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?
Thanks in advance.
Jinzhong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100201/837261a7/attachment.htm>
More information about the Insight-users
mailing list