Global default settings for cmake

一个人想着一个人 提交于 2019-12-31 06:58:07

问题


Is there anything similar to MAKEFLAGS environment variable for cmake, to set some global defaults like CMAKE_INSTALL_PREFIX?


回答1:


No, there is no similar environment variable for CMake. Everything you can set through environment variables in CMake is documented here.

But you could use a the "preload cache" -C option and put all reoccurring settings in an appropriate script (see e.g. CMake preload script for cache).



来源:https://stackoverflow.com/questions/47452508/global-default-settings-for-cmake

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!