[CMake] CMake include file but skip the ZERO_CHECK cache

Cristian Bidea cristi at king.com
Wed Nov 6 04:52:41 EST 2013


Hi

I’m using the eval function from http://www.cmake.org/Wiki/CMake/Language_Syntax#Substitution_of_command_names

The command creates a temporary file and then it includes the file. In this way one can execute cmake commands from
arbitrary strings. However when including a cmake file that file ends up in cache and when compiling the ZERO_CHECK
target will be executed to verify that none of the cmake files have changed. Obviously this fails because the temporary
file is also in cache but it was removed immediately after it was included.

Is it possible to include a file and afterwards exclude it from the list that gets checked by the ZERO_CHECK target?

-Cristi


More information about the CMake mailing list