easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

Should cmakemake change self.cfg['builddir'] when separate_build_dir == True

Open akesandgren opened this issue 4 years ago • 0 comments
trafficstars

I.e. in the code section:

    def configure_step(self, srcdir=None, builddir=None):
        """Configure build using cmake"""

        setup_cmake_env(self.toolchain)

        if builddir is None and self.cfg.get('separate_build_dir', True):
            builddir = create_unused_dir(self.builddir, 'easybuild_obj')

        if builddir:
            mkdir(builddir, parents=True)
            change_dir(builddir)
            default_srcdir = self.cfg['start_dir']
        else:
            default_srcdir = '.'

should we change the self.cfg['builddir'] when builddir != None ?

It's otherwise impossible to know for certain where the real builddir is if that info is needed in the easyconfig file...

akesandgren avatar Oct 08 '21 09:10 akesandgren