diff options
| author | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-07-16 11:06:16 +0700 |
|---|---|---|
| committer | Alexey Gavrilov <alexey.gavrilov@mail.com> | 2026-07-16 11:06:16 +0700 |
| commit | f79d0f2f318c5ad1329f2d3c26a23b96eff40a82 (patch) | |
| tree | 1d0a20549c446d498eccfc4b623f353dbe229152 /cmake/module/feature.cmake | |
| parent | c84f8720b62288e8e0a537802e12131ca4713805 (diff) | |
Processing feature variables policy change
Feature is enable if variable FEATURE_<feature name> defines and it
caches, and it judges as **enable**.
It influences the FEATURE_<feature name>_IS_ENABLE field in
`CMakeFeature.out` and runfile generation files - all the **enable** features
are mention direct or indirect now.
Signed-off-by: Alexey Gavrilov <alexey.gavrilov@mail.com>
Diffstat (limited to 'cmake/module/feature.cmake')
| -rw-r--r-- | cmake/module/feature.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/module/feature.cmake b/cmake/module/feature.cmake index 380a88d..d97761b 100644 --- a/cmake/module/feature.cmake +++ b/cmake/module/feature.cmake @@ -240,7 +240,7 @@ createFeatureModuleFunction("outFeaturesToFile" "" endforeach() # Check if feature is enable, and push them to file - if("FEATURE_\${feature}" IN_LIST cacheVars AND NOT "\${FEATURE_\${feature}}" STREQUAL "") + if("FEATURE_\${feature}" IN_LIST cacheVars AND DEFINED "\${FEATURE_\${feature}}") file(APPEND "\${OUT_FILE}" "FEATURE_\${feature}_IS_ENABLING = " "\\"TRUE\\"\n") endif() |
