[CMake] detecting first cmake run ?

Andy Cedilnik andy.cedilnik at kitware.com
Mon Mar 20 07:46:32 EST 2006


Hi Alex,

IF(NOT CMAKE_NOT_FIRST_RUN)
  # Do something
ENDIF(NOT CMAKE_NOT_FIRST_RUN)
SET(CMAKE_NOT_FIRST_RUN 1 CACHE INTERNAL "")

       Andy

Alexander Neundorf wrote:
> Hi, 
>  
> I can remember there was already this question, but I can't find it in 
> the archive. 
> Is there a way to detect the first run of cmake on a project ? 
>  
> I think there was something like CMAKE_FIRST_RUN, but this doesn't exist. 
>  
> Bye 
> Alex 
>  
>
>   




More information about the CMake mailing list