I want to set configuration variable (path, in particular) in CMakeList.txt for my project, which user can override in CCmake.
But if i just use
set(VAR <value>)
VAR is not available for changing in CCMAKE, how can i do that?
I want to set configuration variable (path, in particular) in CMakeList.txt for my project,
Share
If you add the
CACHEpart to yoursetcommand, it will be visible in CCMake. So, e.g.The types of variable which appear in CCMake are
FILEPATH,PATH,STRINGandBOOL.For full details, run: