WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
baae08c7
Commit
baae08c7
authored
Oct 30, 2013
by
Mathias Bavay
Browse files
Better detection of Grib_API
parent
e37dfd45
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/cmake/FindGribApi.cmake
View file @
baae08c7
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment