[CMake] Cache loss on warning

Diablo 666 thediablo666 at hotmail.de
Fri Aug 20 04:56:35 EDT 2010


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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100820/26ca1768/attachment.htm>


More information about the CMake mailing list