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.