0

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

saga
  • 1,933
  • 2
  • 17
  • 44

1 Answers1

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

Florian
  • 39,996
  • 9
  • 133
  • 149