[CMake] problems with CMAKE_CFG_INTDIR in initial cache

Dominik Szczerba dominik at itis.ethz.ch
Mon Apr 4 15:22:30 EDT 2011


I am configuring my project by loading an initial cache like "cmake -C
initial_cache.cmake ...". I specify a linking folder in this file like
this:

SET(MY_LINK_DIR P:/my_package/x64/${CMAKE_CFG_INTDIR} CACHE PATH "doc")

but LINK_DIR is then seen e.g. with cmake-gui as P:/my_package/x64
only. Of course, it does not do what I want during building. HOWEVER,
if I enter the above value for LINK_DIR by hand in cmake-gui, it works
and does what I want.
Now my question: how can I do it from the initial cache file, avoiding
cmake-gui. Would there be some kind of verbatim or escape mode?
(\$\{...\} would not work)

Regards,
Dominik


More information about the CMake mailing list