Please pardon my crossposts :
I completely deleted my build directory, then made a new one, cd' to
it, and ran ccmake against ../vtk
One of the messages that flashes by is something about checking for a
working gcc compiler: 3.3. Huh?
After it's done checking, I edit the Carbon/Cocoa fields, the VTKdata
path field, I toggle the advanced settings and find, among other things:
CMAKE_COLOR_MAKEFILE *ON
CMAKE_CXX_COMPILER */usr/bin/g++-3.3
CMAKE_CXX_FLAGS *
CMAKE_CXX_FLAGS_DEBUG *-g
CMAKE_CXX_FLAGS_MINSIZEREL *-Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE *-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO *-O2 -g
CMAKE_C_COMPILER */usr/bin/gcc-3.3
CMAKE_C_FLAGS
For laughs, I edited the two compiler settings to be 4.0, as seen below
CMAKE_CXX_COMPILER */usr/bin/g++-4.0
CMAKE_CXX_FLAGS *
CMAKE_CXX_FLAGS_DEBUG *-g
CMAKE_CXX_FLAGS_MINSIZEREL *-Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE *-O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO *-O2 -g
CMAKE_C_COMPILER */usr/bin/gcc-4.0
Then tell it to configure (c)
Then, when I take a peek at those compiler setting again, they're
baaack:
CMAKE_CXX_COMPILER /usr/bin/g++-3.3
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG -g
CMAKE_CXX_FLAGS_MINSIZEREL -Os -DNDEBUG
CMAKE_CXX_FLAGS_RELEASE -O3 -DNDEBUG
CMAKE_CXX_FLAGS_RELWITHDEBINFO -O2 -g
CMAKE_C_COMPILER /usr/bin/gcc-3.3
And gcc -v still tells me that gcc 4.0 is the system preference .
All further guidance will be appreciated.
Corrie
On Nov 30, 2006, at 1:40 PM, Alexander Neundorf wrote:
Von: Corrie <[EMAIL PROTECTED]>
...
thing happens when I make the change through CCMake. Yet when I run
gcc -v, I'm told "gcc version 4.0.1 (Apple Computer, Inc. build
5367)". Can someone tell me what I can do to fix this? Thanks.
I'd say if you are building out-of-source, create a new
builddirectory where you run cmake when gcc 4.0 is selected. Your
other build directory shouldn't care about this.
If you are building in-source, delete your CMakeCache.txt and run
cmake again.
Bye
Alex
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
Cup-Yacht!
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake