View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006102CMakeCCMakepublic2007-11-30 14:032013-07-16 08:39
ReporterBrian Wylie 
Assigned ToBill Hoffman 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006102: Changing compilers should be an easier operation
DescriptionCurrently 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.
TagsNo tags attached.
Attached Files

 Relationships
related to 0013901closedBrad King cmake . -DCMAKE_CXX_COMPILER= results in segfault 
related to 0013756closedBrad King Infinite loop when reconfiguring with different CMAKE_C_COMPILER 
related to 0014294closedBrad King Specifying CMAKE_CXX_COMPILER=g++ after first run deletes all cached values 

  Notes
(0009870)
Bill Hoffman (manager)
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

 Issue History
Date Modified Username Field Change
2007-11-30 14:03 Brian Wylie New Issue
2007-11-30 14:05 Brian Wylie Assigned To => Berk Geveci
2007-11-30 14:05 Brian Wylie Status new => assigned
2007-12-01 13:19 Berk Geveci Project InfoVis => CMake
2007-12-01 13:20 Berk Geveci Assigned To Berk Geveci => Bill Hoffman
2007-12-13 15:55 Bill Hoffman Note Added: 0009870
2007-12-13 15:55 Bill Hoffman Status assigned => closed
2007-12-13 15:55 Bill Hoffman Resolution open => fixed
2007-12-13 15:55 Bill Hoffman Category => CCMake
2013-02-08 16:39 Brad King Relationship added related to 0013901
2013-02-08 16:39 Brad King Relationship added related to 0013756
2013-07-16 08:39 Brad King Relationship added related to 0014294


Copyright © 2000 - 2018 MantisBT Team