diff --git a/CMakeLists.txt b/CMakeLists.txt index 254b0b4a5..cae738a87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,6 +104,11 @@ ecbuild_add_option( FEATURE MEMFS # ecbuild_warn("MEMFS not supported with Cray C compiler") #endif() +if(HAVE_MEMFS) + set( _will_install_defs_samples OFF ) +else() + set( _will_install_defs_samples ON ) +endif() # controls installation of files in definitions/ -- note that it still creates the symlinks in the build dir # by default, if memfs is available, then we don't need to install definitions