[CMake] Overwriting variables in cache.

Philip Lowman philip at yhbt.com
Thu Feb 18 23:49:59 EST 2010


You can use the CACHE & FORCE options to the set() command.  This will
overwrite the variable every time you configure regardless of what the
user enters, however.

On Thu, Feb 18, 2010 at 10:40 AM, Benoit Thomas
<benoit.thomas at gameloft.com> wrote:
> Hi,
>
> I am trying to overwrite some variables in the cache (without editing the
> cache); it works well for variables like CMAKE_CXX_FLAGS, but I cannot
> overwirte the CMAKE_CONFIGURATION_TYPES variable. Is there a way to do this
> without having to edit the cache ? (or modifying it the first time the cache
> is build, that would be correct also).
>
> (Sorry if this sound confusing, I just started using cmake)
>
> Thank you,
> Ben.
>
> _______________________________________________
> 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
>



-- 
Philip Lowman


More information about the CMake mailing list