标签: c++ cmake
所以我有一个生成CMakeCache.txt的项目,该项目设置了很多变量,例如:
project_SOURCE_DIR:STATIC=/home/username/project
,我想用系统变量$ HOME替换/home/username,该怎么办?下面会工作吗?
/home/username
project_SOURCE_DIR:STATIC=$HOME/project
或
project_SOURCE_DIR:STATIC=$ENV{HOME}/project