[Cmake] VTK_SOURCE_DIR
Sylvain Jaume
jaume at tele.ucl.ac.be
Tue Dec 11 15:39:12 EST 2001
Andy,
My ~/VTK-build/CMakeCache.txt says:
//DO NOT EDIT, VTK_SOURCE_DIR loaded from external file. To change
// this value edit this file: /home/jaume/VTK-build/CMakeCache.txt
//
VTK_SOURCE_DIR:INTERNAL=/home/jaume/VTK
But there is no VTK_SOURCE_DIR in my ~/Local-build/CMakeCache.txt
I'll update my CMake with CVS and compile it again.
I'll keep you posted if I keep having this VTK_SOURCE_DIR not found
message in ~/Local-build.
Thanks!
Sylvain
On Tue, 11 Dec 2001, Andy Cedilnik wrote:
>
> >I should tell you that compiling VTK in ~/VTK-build is no problem.
> >I get the following message only when compiling in ~/Local-build
> >CMake Error: INCLUDE: Error :
> >INCLUDE Include file not found: ${VTK_SOURCE_DIR}/vtkCMakeOptions.cmake
> >The file vtkCMakeOptions.cmake exists in ~/VTK, but not in ~/Local.
> >${VTK_SOURCE_DIR} should refer to ~/VTK, but it probably refer to ~/Local.
> >I've not found the file where I can set the variable VTK_SOURCE_DIR to
> >~/VTK. If you know where it is, please tell me. That might be a solution.
>
> Well, your CMakeLists.txt looks ok.
> What I would do is to go to ~/VTK-build and look at CMakeCache.txt. It should
> have VTK_SOURCE_DIR set inside to ~/VTK. If it does not, then you have
> problems there.
> Then look at CMakeCache.txt in ~/Local-build. It should say something about
> not editing that and where it is and what it is set to. If not, then I
> would update
> CMake.
>
> >One more question: Could CMake use the variables in .bashrc (or any
> >other environment file for different OS)?
> >So CMake could guess more paths while building the CMakeCache.txt
> >Perhaps it's a stupid question...
>
> I think CMake's developers do not like environment variables. I don't know why.
>
> Andy
More information about the CMake
mailing list