MantisBT - CMake
View Issue Details
0006102CMakeCCMakepublic2007-11-30 14:032013-07-16 08:39
Brian Wylie 
Bill Hoffman 
normalfeaturealways
closedfixed 
 
 
0006102: Changing compilers should be an easier operation
Currently changing compilers in cmake (specifically ccmake) is not possible once you have run configure. Completely removing the build directory and setting my CXX and CC environment vars and then rerunning cmake seems to be very unintuitive. My suggestion is that if a user changes a compiler in ccmake, then have cmake invoke "Delete Cache" (which deletes the caches as well as the compiler specific files) and cmake would basically start over. Yes this would lead to performance issues but compared with the current 'mess' would be a much nicer user experience.

Note: The 'short cut' of not allowing users to change the compiler does not fully address this issue.
No tags attached.
related to 0013901closed Brad King cmake . -DCMAKE_CXX_COMPILER= results in segfault 
related to 0013756closed Brad King Infinite loop when reconfiguring with different CMAKE_C_COMPILER 
related to 0014294closed Brad King Specifying CMAKE_CXX_COMPILER=g++ after first run deletes all cached values 
Issue History
2007-11-30 14:03Brian WylieNew Issue
2007-11-30 14:05Brian WylieAssigned To => Berk Geveci
2007-11-30 14:05Brian WylieStatusnew => assigned
2007-12-01 13:19Berk GeveciProjectInfoVis => CMake
2007-12-01 13:20Berk GeveciAssigned ToBerk Geveci => Bill Hoffman
2007-12-13 15:55Bill HoffmanNote Added: 0009870
2007-12-13 15:55Bill HoffmanStatusassigned => closed
2007-12-13 15:55Bill HoffmanResolutionopen => fixed
2007-12-13 15:55Bill HoffmanCategory => CCMake
2013-02-08 16:39Brad KingRelationship addedrelated to 0013901
2013-02-08 16:39Brad KingRelationship addedrelated to 0013756
2013-07-16 08:39Brad KingRelationship addedrelated to 0014294

Notes
(0009870)
Bill Hoffman   
2007-12-13 15:55   
OK, I think I have this working in CVS. If you change a compiler in CMake it will now automatically delete the cache and re-run configure.

/cvsroot/CMake/CMake/Source/cmGlobalUnixMakefileGenerator3.cxx,v <-- cmGlobalUnixMakefileGenerator3.cxx
new revision: 1.117; previous revision: 1.116
/cvsroot/CMake/CMake/Source/cmMakefileTargetGenerator.cxx,v <-- cmMakefileTargetGenerator.cxx
new revision: 1.74; previous revision: 1.73
/cvsroot/CMake/CMake/Source/cmake.cxx,v <-- cmake.cxx
new revision: 1.337; previous revision: 1.336
/cvsroot/CMake/CMake/Source/cmake.h,v <-- cmake.h
new revision: 1.96; previous revision: 1.95