[CMake] problems when upgrading cmake

Bill Hoffman bill.hoffman at kitware.com
Thu Oct 8 11:58:59 EDT 2009


Clinton Stimpson wrote:
> 
> I've got this in a CMakeLists.txt file:
> 
> PROJECT(foo)
> MESSAGE("${CMAKE_SIZEOF_VOID_P}")
> 
> If I run with cmake 2.6 it prints out the size.
> If I run cmake 2.8 on it without deleting the cache, it goes empty.
> If I manually fix CMakeFiles/CMakeC*Compiler.cmake, everything else 
> seems fine.
> 
> Am I supposed to delete my cache?  Or is cmake not supposed to leave me 
> with an empty sizeof void*?
> 

I don't think we can support running two versions of cmake on the same 
build tree.  So, yes, you are supposed to delete the cache and the 
CMakeFiles directory.

-Bill


More information about the CMake mailing list