[Cmake] Bug reports?
William Gropp
gropp at mcs . anl . gov
Thu, 24 Jul 2003 08:03:05 -0500
At 08:40 AM 7/23/2003 -0400, Brad King wrote:
> > error (in the Examples/Tutorial/Step1/Cxx directory) that claims that
> > VTKConfig.cmake is not found in the directory specified by VTK_DIR, but
> > when I do ls -l $VTK_DIR/VTKConfig.cmake , the file is present and
> > accessible (and I did remember to do export VTK_DIR). Should I pull the
> > CVS version and start over? Or is there a way to debug this to figure out
> > why cmake doesn't find the file? Thanks!
>
>VTK_DIR is a cmake cache entry, not an environment variable. Modify it by
>running a CMake GUI (ccmake in the case of cygwin). You may also run
>"make edit_cache" in the build tree.
Thanks. That isn't clear from the VTK documentation. I'd also recommend
upgrading the message; for people like me that haven't used cmake before
and who are using it only to build someone else's tool (VTK in my case),
this wasn't clear. Or is this message coming from some VTK-specific
extension to cmake? In any event, I recommend making it clear who to query
and set that value in the error message.
In terms of setting this cache variable, I don't have a ccmake. Building
cmake 1.6.7 with
configure -prefix=/mypath/prefix
make
make install
according to the instructions in cmake.pdf installs
cmake.exe
cmaketest.exe
ctest.exe
There is a ccmake.cxx in Source/CursesDialog/ccmake.cxx , but there is no
Makefile there. Maybe this is just an FYI, but base cygwin doesn't include
curses. I'll fetch that and start over.
Bill