[CMake] [Cmake] How to delete cache files? Debug, Release Configuration

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Mon Mar 23 10:38:57 EDT 2009


> Von: Nadir SOUALEM
> In my CMakeLists.txt, i use such things like:
> 
> FIND_LIBRARY(LIB_UMFPACK LIB_UMFPACK 
> /opt/UMFPACK5.0.3/build/linux_eclipse/LIB_UMFPACK/${CMAKE_BUILD_TYPE})
> 
> So when i run:
> cmake -DCMAKE_BUILD_TYPE=Debug
> 
> in my CMakeCache.txt, i find
> 
> //Path to a library.
> LIB_UMFPACK:FILEPATH=/opt/UMFPACK5.0.3/build/linux_eclipse/LIB_UMFPACK/Debug/libLIB_UMFPACK.a
> 
> When i try to do:
> cmake -DCMAKE_BUILD_TYPE=Release
> 
> in my CMakeCache.txt, i still  find libLIB_UMFPACK.a on Debug Mode:
> //Path to a library.
> LIB_UMFPACK:FILEPATH=/opt/UMFPACK5.0.3/build/linux_eclipse/LIB_UMFPACK/Debug/libLIB_UMFPACK.a
> 
> if i remove CMakeCache.txt:
> rm CMakeCache.txt
> 
> and i try
> cmake -DCMAKE_BUILD_TYPE=Release
> 
> I found the good mode ... So, my question is the following one:
> is there a way (command line, configuration of CMakeLists.txt, ...) to 
> force reloading my CMakeCache.txt,
cd <build-dir> && rm -rf * && cmake <source_dir>
If you want to have a single command, write an alias.


Christian


-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01


More information about the CMake mailing list