diff --git a/src/build_scripts/buildlib.cprnc b/src/build_scripts/buildlib.cprnc index 3fec917ef5c..703de06afe6 100755 --- a/src/build_scripts/buildlib.cprnc +++ b/src/build_scripts/buildlib.cprnc @@ -47,7 +47,8 @@ def buildlib(bldroot, installpath, case): cimeroot = case.get_value("CIMEROOT") # Generate macros and environment - run_bld_cmd_ensure_logging("{}/tools/configure --mpilib=mpi-serial --macros-format=CMake".format(cimeroot), logger, from_dir=bldroot) + + run_bld_cmd_ensure_logging("{}/tools/configure --mpilib=mpi-serial --macros-format=CMake --machine={}".format(cimeroot, case.get_value("MACH")), logger, from_dir=bldroot) cmake_args = get_standard_cmake_args(case, shared_lib=True)