mark_as_advanced.rst 654 B

12345678910111213141516171819
  1. mark_as_advanced
  2. ----------------
  3. Mark cmake cached variables as advanced.
  4. ::
  5. mark_as_advanced([CLEAR|FORCE] VAR [VAR2 ...])
  6. Mark the named cached variables as advanced. An advanced variable
  7. will not be displayed in any of the cmake GUIs unless the show
  8. advanced option is on. If ``CLEAR`` is the first argument advanced
  9. variables are changed back to unadvanced. If ``FORCE`` is the first
  10. argument, then the variable is made advanced. If neither ``FORCE`` nor
  11. ``CLEAR`` is specified, new values will be marked as advanced, but if the
  12. variable already has an advanced/non-advanced state, it will not be
  13. changed.
  14. It does nothing in script mode.