https://github.com/Kitware/CMake
Revision de4f1f26b0a3217f7caf842c50857b1ac90d9b7d authored by Ben Boeckel on 02 July 2021, 13:54:38 UTC, committed by Ben Boeckel on 09 July 2021, 12:45:18 UTC
This property allows projects to modify environment variables at test
time rather than trying to guess what the state should be based on what
is present at configure time. Of particular interest is the ability to
use a `PATH` present at test time while adding entries known to be
necessary for the test itself.

There are multiple operations provided to modify variables, including:

  - setting and unsetting
  - appending and prepending as:
    - strings
    - path lists
    - CMake lists

Additionally, a `reset` action is provided to cancel any prior
modifications to that particular variable in the case of incremental
additions to the test property.
1 parent 4c757fa
Raw File
Tip revision: de4f1f26b0a3217f7caf842c50857b1ac90d9b7d authored by Ben Boeckel on 02 July 2021, 13:54:38 UTC
CTest: add an ENVIRONMENT_MODIFICATION property
Tip revision: de4f1f2
.clang-format
---
# This configuration requires clang-format version 6.0 exactly.
BasedOnStyle: Mozilla
AlignOperands: false
AllowShortFunctionsOnASingleLine: InlineOnly
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
  AfterClass:      true
  AfterEnum:       true
  AfterFunction:   true
  AfterStruct:     true
  AfterUnion:      true
BreakBeforeBraces: Custom
ColumnLimit: 79
IndentPPDirectives: AfterHash
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: true
IncludeBlocks: Regroup
IncludeCategories:
  - Regex:           '^[<"]cmSTL\.hxx'
    Priority:        -2
  - Regex:           '^[<"]cmConfigure\.h'
    Priority:        -1
  - Regex:           '^<queue>'
    Priority:        1
  - Regex:           '^(<|")cm(ext)?/'
    Priority:        2
  - Regex:           '^(<|")windows\.h'
    Priority:        3
  - Regex:           '^<sys/'
    Priority:        5
  - Regex:           '^(<|")Qt?[A-Z]'
    Priority:        6
  - Regex:           '^<cmtp/'
    Priority:        7
  - Regex:           '^(<|")cmsys/'
    Priority:        8
  - Regex:           '^(<|")cm_'
    Priority:        9
  - Regex:           '^(<|")cm[A-Z][^.]+\.h'
    Priority:        10
  - Regex:           '^<[^.]+\.h'
    Priority:        4
  - Regex:           '^<'
    Priority:        1
  - Regex:           '.*'
    Priority:        11
...
back to top