[CMake] Delay expansion of variables

Rolf Eike Beer eike at sf-mail.de
Wed Aug 1 07:33:44 EDT 2012


Am 01.08.2012 12:34, schrieb João Pinto:
> I need to use a variable X when setting CMAKE_C_LINK_EXECUTABLE. The
> problem is that X is defined after the definition of
> CMAKE_C_LINK_EXECUTABLE, and if I simply use ${X} (when defining
> CMAKE_C_LINK_EXECUTABLE ), the expansion of X will be empty. So my 
> question
> is if there is any option of delaying the expansion X so that when
> CMAKE_C_LINK_EXECUTABLE is used in linking process, the variable X 
> doesn't
> appear empty.

No. But it sounds as if you want to use a toolchain file.

Eike


More information about the CMake mailing list