def METHOD_NAME(self):
    if Version(self.version) >= "0.3.12":
        search = """message(STATUS "No Fortran compiler found, can build only BLAS but not LAPACK")"""
        replace = (
            """message(FATAL_ERROR "No Fortran compiler found. Cannot build with LAPACK.")"""
        )
    else:
        search = "enable_language(Fortran)"
        replace = """include(CheckLanguage)