WSL/SLF GitLab Repository
Skip to content
GitLab
Menu
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
d239580c
Commit
d239580c
authored
Apr 09, 2015
by
Mathias Bavay
Browse files
More robust finding of MeteoIO that properly works on WinXP
parent
1f0bbcc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/cmake/FindMeteoIO.cmake
View file @
d239580c
...
...
@@ -67,8 +67,12 @@ ENDIF(WIN32)
#build METEOIO_ROOT so we can provide a hint for searching for the header file
GET_FILENAME_COMPONENT
(
meteoio_libs_root
${
METEOIO_LIBRARY
}
PATH
)
SET
(
METEOIO_ROOT
"
${
meteoio_libs_root
}
/../"
)
STRING
(
REPLACE
" "
"
\\
"
METEOIO_ROOT
${
METEOIO_ROOT
}
)
IF
(
${
CMAKE_VERSION
}
VERSION_GREATER
"2.8.11"
)
GET_FILENAME_COMPONENT
(
METEOIO_ROOT
${
meteoio_libs_root
}
DIRECTORY
)
ELSE
(
${
CMAKE_VERSION
}
VERSION_GREATER
"2.8.11"
)
SET
(
METEOIO_ROOT
"
${
meteoio_libs_root
}
/../"
)
STRING
(
REPLACE
" "
"
\\
"
METEOIO_ROOT
${
METEOIO_ROOT
}
)
ENDIF
(
${
CMAKE_VERSION
}
VERSION_GREATER
"2.8.11"
)
# locate main header file
FIND_PATH
(
METEOIO_INCLUDE_DIR
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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