From ea00f7c49b0b6fbf3ef7a85ddb608f5fff4fd694 Mon Sep 17 00:00:00 2001 From: Iain Russell Date: Fri, 8 Nov 2024 17:24:04 +0000 Subject: [PATCH] Fix ecbuild_disable_unused_feature --- cmake/ecbuild_features.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()