WSL/SLF GitLab Repository

Commit baae08c7 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Better detection of Grib_API

parent e37dfd45
......@@ -12,11 +12,17 @@ PATHS
DOC "Location of the grib-api library, like /usr/lib/libgrib_api.so"
)
#build GRIBAPI_ROOT so we can provide a hint for searching for the header file
GET_FILENAME_COMPONENT(grib_api_libs_root ${GribApi_LIBRARY} PATH)
SET(GRIBAPI_ROOT "${meteoio_libs_root}/../")
STRING(REPLACE " " "\\ " GRIBAPI_ROOT ${GRIBAPI_ROOT})
# locate main header file
FIND_PATH(GribApi_INCLUDE_DIR
NAMES grib_api.h
#HINTS ${METEOIO_ROOT}/include
#HINTS ${GRIBAPI_ROOT}/include
PATHS
"${GRIBAPI_ROOT}/include"
"~/usr/include"
"/usr/local/include"
"/usr/include"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment