[Cmake] feature request - separate user and system cmake cache files

Tony Pan tpan at bmi.osu.edu
Tue Mar 11 15:28:00 EST 2003


I tried to configure vtk 4.2.1 using cmake 1.6.5.  I created
VTK421.cmake file, which just sets a bunch of name-value pairs for the
options I want.  The file is attached.  When I run "cmake -CVTK421.cmake
vtksrcdir", the generated CMakeCache.txt has only the default values
from CMakeLists.txt.

I tried "cmake -DVTK_USE_HYBRID:BOOL=ON".  This works, the syntax is
different than what you quoted.  The user's guide has the correct
syntax, as above.  This is why I had trouble earlier.  The command line
is going to be pretty long....

Thanks for your help.

Tony





-----Original Message-----
From: Ken Martin [mailto:ken.martin at kitware.com] 
Sent: Tuesday, March 11, 2003 2:19 PM
To: tpan at bmi.osu.edu; cmake at public.kitware.com
Subject: RE: [Cmake] feature request - separate user and system cmake
cache files


Hey Tony,

Please provide an example of a value that does not work. As far as I
know either –C or -D should work. In fact I use both so I know for the
values I’m setting they work fine. I would like to fix any problems that
exist with these approaches.

Thanks
Ken

> I tried the solutions you suggested.  The -C and -D approaches do not
work for me in that the 
> values get overridden during the cmake configure process.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: VTK421.cmake
Type: application/octet-stream
Size: 944 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030311/b04e4cc4/attachment.obj>


More information about the CMake mailing list