Global default settings for cmake

前端 未结 1 754
渐次进展
渐次进展 2021-01-26 02:54

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

相关标签:
1条回答
  • 2021-01-26 03:08

    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).

    0 讨论(0)
提交回复
热议问题