diff --git a/cmake/ecbuild_features.cmake b/cmake/ecbuild_features.cmake index 8bf57fbb..f4e66a7a 100644 --- a/cmake/ecbuild_features.cmake +++ b/cmake/ecbuild_features.cmake @@ -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() \ No newline at end of file +endfunction()