Skip to content

Could not find METIS_PATH using the following files: metis.h #2618

@jschueller

Description

@jschueller

when METIS_ROOT is not specified, cmake is not allowed to look into default directories, which prevents from detecting a system installation, without any alternative:

if(metis_FOUND)
    message(STATUS "metis CMake config path: ${metis_DIR}")
else()
    find_path(METIS_PATH
        NAMES "metis.h"
        REQUIRED
        PATHS "${METIS_ROOT}/include"
        NO_DEFAULT_PATH)                            <==================== here

    message(STATUS "Found Metis header at ${METIS_PATH}")

    find_library(METIS_LIB
        NAMES metis libmetis
        REQUIRED
        PATHS "${METIS_ROOT}/lib" "${METIS_ROOT}/bin"
        NO_DEFAULT_PATH)                            <==================== here

this is on archlinux (metis cmake configuration file is not available), with highs 1.12.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions