2010/9/7 Fraser Hutchison <[email protected]>:
>  On 07/09/2010 1:54 PM, Stefan Köhnen wrote:
>>
>> 2010/9/6 Alexander Neundorf<[email protected]>:
>>>
>>> On Monday 06 September 2010, Stefan Köhnen wrote:
>>>>
>>>> Ah, okay.
>>>>
>>>> Thanks for your fast reply.
>>>>
>>>> Is there a way to change the value in the cache?
>>>
>>> set(... FORCE)
>>>
>>> Alex
>>>
>> Hello Alex,
>>
>> thanks again for your reply. I tried to use set with FORCE but it didn't
>> work.
>>
>> My CMakeLists.txt looks like this:
>>
>> PROJECT(CMakeTest)
>>
>> SET(VAR_FOR_TEST "firstValue" CACHE STRING "Just for testing")
>>
>> set(VAR_FOR_TEST "secondValue" FORCE)
>>
> I think you want
>
> set(VAR_FOR_TEST "secondValue" CACHE STRING "Overwritten value" FORCE)
>
> All the best,
>
> Fraser.
>
>
>
>
>
>

Yes that is exactly what I was looking for.

Thank you very much. I added this and it works perfectly.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to