[Cmake] CMake not changing runtime variables

William A. Hoffman bill.hoffman at kitware.com
Tue Mar 18 19:53:48 EST 2003


Each project should only have one CMakeCache.txt, and
it is in the directory that ccmake is run in.


cd build
ccmake /path/to/source
This will create a CMakeCache.txt file in the build directory.


Exactly how are you running ccmake?


-Bill


At 05:13 PM 3/18/2003 -0500, Nathan Smith wrote:
>The project has a base directory and two subdirectories: Common and
>Unsorted, and each of Common and Unsorted had a CMakeCache.txt file in
>them. I deleted that file in Unsorted and it didn't come back. But the
>build is still not recognizing my changes to c++ flags. Furthermore, after
>I ran ccmake/etc, before I did any make, I ran a "grep -r "Wall" *" (-Wall
>being the flag I added to the c++ flags), and nothing came up.
>
>A while back I added the flag -Wno-deprecated, and that still pops up
>everytime I run ccmake, even if I don't add it into the flags. So this
>makes me think that ccmake is looking at old configuration files
>somewhere.. could this be a problem of changing my cmake version in the
>middle of the build? I went from 1.7 to 1.6. Thanks
>
>Nate
>
>
>
>  On Mon, 17
>Mar 2003, William A. Hoffman wrote:
>
> > There should only be one CMakeCache.txt file per project, so something
> > strange is going on.   Can you give a more detailed example?
> >
> > -Bill
> >
> >
> > At 06:44 PM 3/17/2003 -0500, Nathan Smith wrote:
> > >Hello, cmake is not correctly reflecting changes that I make to runtime
> > >variables. For instance, I will delete CMakeCache.txt in the base and
> > >subdirectories of the build, rerun ccmake, enter in -Wall for c++ flags,
> > >configure, generate, and -Wall doesn't show up as one of the flags. Anyone
> > >have any ideas? Thanks
> > >
> > >Nate
> > >
> > >
> > >_______________________________________________
> > >Cmake mailing list
> > >Cmake at public.kitware.com
> > >http://public.kitware.com/mailman/listinfo/cmake
> >
> >
> >
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake






More information about the CMake mailing list