Hi,

there seems to be a little bug in ccmake:
When I start cmake like follows:

cmake . -DFOO_DIR=/path/to -DVTK_DIR=/other/path/to

I get the following warning:

Warning: CMake is forcing CMAKE_CXX_COMPILER to "/usr/bin/g++" to match that 
imported from VTK.  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 /usr/bin/c++

Anyway, I get my makefiles and everything is fine. If I start ccmake with the 
same parameters, it prints the same warning and forgets about the FOO_DIR and 
VTK_DIR. The next time I try to configure the project, it resets the 
CXX_COMPILER to /usr/bin/c++, because it finds an older version of VTK. So 
there seems to be no way to configure my project while using VTK 5.6 but to 
delete all older versions of VTK?

Best regards,
Andreas
                                          
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to