[CMake] Delay expansion of variables

João Pinto jppinto at gmail.com
Wed Aug 1 06:34:44 EDT 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120801/4ea5141c/attachment.htm>


More information about the CMake mailing list