Skip to content

Commit

Permalink
Merge pull request #71 from ecmwf/fix/fix-optional-features
Browse files Browse the repository at this point in the history
Fix ecbuild_disable_unused_feature
  • Loading branch information
iainrussell authored Nov 10, 2024
2 parents 397e88b + ea00f7c commit 2280161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/ecbuild_features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ endfunction()
# Disable the feature ${_name} globally (if it has not been enabled in any subproject)
function( ecbuild_disable_unused_feature _name )
get_property( _enabled GLOBAL PROPERTY ENABLED_FEATURES )
if ( NOT _name IN_LIST _enabled ) # if not already disabled
if ( _name IN_LIST _enabled ) # if not already disabled
ecbuild_disable_feature( ${_name} )
endif()
endfunction()
endfunction()

0 comments on commit 2280161

Please sign in to comment.