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

Nadir SOUALEM nadir.soualem at irisa.fr
Tue Mar 24 04:03:05 EDT 2009


Christian Ehrlicher wrote:
>> 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
>
>
>   

So no other way  ? especially on CMakeLists.txt ?

Thank you


More information about the CMake mailing list