[Cmake] Removing a cache entry? Multiple MACRO definitions?
Andy Cedilnik
andy.cedilnik at kitware.com
Fri, 02 Jan 2004 15:36:32 -0500
Hi Amitha,
So, #1:
I had a similar idea. Something like a global variable which reruns all
the try compiles, so then you do:
cmake -DCMAKE_RERUN_TRY_COMPILES=1 .
which will ignore values in the cache.
Also, I think it may work if you set HAVE_STDLIB to be HAVE_STDLIB, but
I am not sure.
About #2, that should work fine. You can redefine macros.
Andy
On Fri, 2004-01-02 at 15:08, Amitha Perera wrote:
> Hi all
>
> 1)
>
> How can I remove a cache entry in CMake? I want to force a re-test of
> a CHECK_INCLUDE_FILE without generating a new variable name. Something
> like this:
>
> CHECK_INCLUDE_FILE( stdlib.h HAVE_STDLIB )
> # removes definition from memory, but not cache file
> SET( HAVE_STDLIB )
> # Will not re-run check because entry exists (in cache file)
> # How can I force it?
> CHECK_INCLUDE_FILE( stdlib.h HAVE_STDLIB )
>
>
> 2)
>
> Is it permissible to define the same macro twice? I.e. is
>
> INCLUDE( ${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake )
> INCLUDE( ${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake )
>
> valid?