diff --git a/easybuild/easyblocks/generic/cmakemake.py b/easybuild/easyblocks/generic/cmakemake.py index d6e3d604df..224033ed2d 100644 --- a/easybuild/easyblocks/generic/cmakemake.py +++ b/easybuild/easyblocks/generic/cmakemake.py @@ -308,7 +308,6 @@ def get_config_opts(self, cache_exists=False): return options - def configure_step(self, srcdir=None, builddir=None): """Configure build using cmake""" @@ -348,7 +347,7 @@ def configure_step(self, srcdir=None, builddir=None): if '-DBUILD_SHARED_LIBS=' in self.cfg['configopts']: print_warning('Ignoring BUILD_SHARED_LIBS is set in configopts because build_shared_libs is set') self.cfg.update('configopts', '-DBUILD_SHARED_LIBS=%s' % ('ON' if build_shared_libs else 'OFF')) - + # If the cache does not exist CMake reads the environment variables cache_exists = os.path.exists('CMakeCache.txt')